Search Results for

    Show / Hide Table of Contents

    Class GameManager

    Inheritance
    Object
    GameManager
    Implements
    IGameManager
    IMonoBehaviour
    IServicePublisher<IPreRunGameService>
    IServicePublisher<IPostRunGameService>
    Namespace: RTSEngine.Game
    Assembly: cs.temp.dll.dll
    Syntax
    public class GameManager : MonoBehaviour, IGameManager, IMonoBehaviour, IServicePublisher<IPreRunGameService>, IServicePublisher<IPostRunGameService>

    Properties

    ActiveFactionCount

    Declaration
    public int ActiveFactionCount { get; }
    Property Value
    Type Description
    Int32

    ActiveFactionSlots

    Declaration
    public IReadOnlyList<IFactionSlot> ActiveFactionSlots { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IFactionSlot>

    audioMgr

    Declaration
    protected IGameAudioManager audioMgr { get; }
    Property Value
    Type Description
    IGameAudioManager

    ClearDefaultEntities

    Declaration
    public bool ClearDefaultEntities { get; }
    Property Value
    Type Description
    Boolean

    CurrBuilder

    Declaration
    public IGameBuilder CurrBuilder { get; }
    Property Value
    Type Description
    IGameBuilder

    DefeatCondition

    Declaration
    public DefeatConditionType DefeatCondition { get; }
    Property Value
    Type Description
    DefeatConditionType

    FactionCount

    Declaration
    public int FactionCount { get; }
    Property Value
    Type Description
    Int32

    FactionSlots

    Declaration
    public IReadOnlyList<IFactionSlot> FactionSlots { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IFactionSlot>

    GameCode

    Declaration
    public string GameCode { get; }
    Property Value
    Type Description
    String

    gameUIText

    Declaration
    protected IGameUITextDisplayManager gameUIText { get; }
    Property Value
    Type Description
    IGameUITextDisplayManager

    globalEvent

    Declaration
    protected IGlobalEventPublisher globalEvent { get; }
    Property Value
    Type Description
    IGlobalEventPublisher

    InPeaceTime

    Declaration
    public bool InPeaceTime { get; }
    Property Value
    Type Description
    Boolean

    inputMgr

    Declaration
    protected IInputManager inputMgr { get; }
    Property Value
    Type Description
    IInputManager

    LocalFactionSlot

    Declaration
    public IFactionSlot LocalFactionSlot { get; }
    Property Value
    Type Description
    IFactionSlot

    LocalFactionSlotID

    Declaration
    public int LocalFactionSlotID { get; }
    Property Value
    Type Description
    Int32

    logger

    Declaration
    protected IGameLoggingService logger { get; }
    Property Value
    Type Description
    IGameLoggingService

    PeaceTimer

    Declaration
    public TimeModifiedTimer PeaceTimer { get; }
    Property Value
    Type Description
    TimeModifiedTimer

    State

    Declaration
    public GameStateType State { get; }
    Property Value
    Type Description
    GameStateType

    timeModifier

    Declaration
    protected ITimeModifier timeModifier { get; }
    Property Value
    Type Description
    ITimeModifier

    Methods

    GetFactionSlot(Int32)

    Declaration
    public IFactionSlot GetFactionSlot(int ID)
    Parameters
    Type Name Description
    Int32 ID
    Returns
    Type Description
    IFactionSlot

    LeaveGame()

    Declaration
    public void LeaveGame()

    LooseGame()

    Declaration
    public void LooseGame()

    OnFactionDefeated(Int32)

    Declaration
    public ErrorMessage OnFactionDefeated(int factionID)
    Parameters
    Type Name Description
    Int32 factionID
    Returns
    Type Description
    ErrorMessage

    OnFactionDefeatedLocal(Int32)

    Declaration
    public ErrorMessage OnFactionDefeatedLocal(int factionID)
    Parameters
    Type Name Description
    Int32 factionID
    Returns
    Type Description
    ErrorMessage

    OnInit()

    Declaration
    protected virtual void OnInit()

    SetPeaceTime(Single)

    Declaration
    public void SetPeaceTime(float time)
    Parameters
    Type Name Description
    System.Single time

    SetState(GameStateType)

    Declaration
    public void SetState(GameStateType newState)
    Parameters
    Type Name Description
    GameStateType newState

    WinGame()

    Declaration
    public void WinGame()

    Events

    GameBuilt

    Declaration
    public event CustomEventHandler<IGameManager, EventArgs> GameBuilt
    Event Type
    Type Description
    CustomEventHandler<IGameManager, System.EventArgs>

    GamePostBuilt

    Declaration
    public event CustomEventHandler<IGameManager, EventArgs> GamePostBuilt
    Event Type
    Type Description
    CustomEventHandler<IGameManager, System.EventArgs>

    GameServicesInitialized

    Declaration
    public event CustomEventHandler<IGameManager, EventArgs> GameServicesInitialized
    Event Type
    Type Description
    CustomEventHandler<IGameManager, System.EventArgs>

    GameStartRunning

    Declaration
    public event CustomEventHandler<IGameManager, EventArgs> GameStartRunning
    Event Type
    Type Description
    CustomEventHandler<IGameManager, System.EventArgs>

    Implements

    IGameManager
    IMonoBehaviour
    IServicePublisher<>
    IServicePublisher<>
    In This Article
    Back to top Unity RTS Engine Documentation