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>() )); }
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; }
public static State UpdateUIState(UIState uiState, State state) { state.CurrentUIState = uiState; return(state); }