Class CivicsManager
Civics properties used on the client
Inheritance
System.Object
CivicsManager
Assembly: Eco.Gameplay.dll
Syntax
public class CivicsManager : Singleton<CivicsManager>, IController, IViewController, IHasUniversalID
Constructors
CivicsManager()
Declaration
Properties
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
GetCivicActionsForWorldObject(Type)
Gets all the civic actions that can be executed on a given world object. Defined via attributes [AddCiviceActionToObject] and [HasCivicAction]
Declaration
public IEnumerable<Type> GetCivicActionsForWorldObject(Type worldObject)
Parameters
Type |
Name |
Description |
System.Type |
worldObject |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Type> |
|
GetWorldObjectsForCivicAction(Type)
Gets all the world objects where the given civic action can be performed. Defined via attributes [AddCiviceActionToObject] and [HasCivicAction]
Declaration
public IEnumerable<Type> GetWorldObjectsForCivicAction(Type civicAction)
Parameters
Type |
Name |
Description |
System.Type |
civicAction |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Type> |
|
Initialize()
Declaration
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
Extension Methods