Show / Hide Table of Contents

Class CivicsManager

Civics properties used on the client

Inheritance
System.Object
CivicsManager
Implements
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Civics
Assembly: Eco.Gameplay.dll
Syntax
public class CivicsManager : Singleton<CivicsManager>, IController, IViewController, IHasUniversalID

Constructors

CivicsManager()

Declaration
public CivicsManager()

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
public void Initialize()

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾