Example #1
0
 public static State InitialState()
 {
     return(new State(
                "",
                new DebugEvent(EventId.InitialState(), "No event to process"),
                EventStore.InitialState(),
                new ImList <EventArchive>(),
                GameState.InitialState(),
                UIState.InitialState(),
                new ImList <RenderCommand>()
                ));
 }
Example #2
0
 public State(
     string me,
     Event processing,
     EventStore eventStore,
     ImList <EventArchive> eventArchives,
     GameState gameState,
     UIState uiState,
     ImList <RenderCommand> renderData
     )
 {
     Me               = me;
     Processing       = processing;
     ActiveEventStore = eventStore;
     EventArchives    = eventArchives;
     CurrentGameState = gameState;
     CurrentUIState   = uiState;
     RenderData       = renderData;
 }
Example #3
0
 public static State UpdateUIState(UIState uiState, State state)
 {
     state.CurrentUIState = uiState;
     return(state);
 }