public ChildFormNavigationController() { navigationHistory = CreateNavigationHistory(); navigationStack = new SizeLimitedStack<ViewShortcut>(HistoryDepth); InitializeComponent(); RegisterActions(components); }
void Awake() { playerInputHistory = new SizeLimitedStack <PlayerInputForPacket>( Constants.MAX_PLAYER_INPUT_HISTORY ); playerInputHistory.Push(FetchInput(nextInputSequence++, nextPacketSequence)); receivedPlayerInputs = new SizeLimitedStack <PlayerInput>( Constants.MAX_RECEIVED_PLAYER_INPUT_LENGTH ); validatedPlayerInputs = new SizeLimitedStack <ValidatedPlayerInput>( Constants.MAX_VALIDATED_PLAYER_INPUTS_ON_SERVER ); validatedPlayerInputsFromServer = new SizeLimitedStack <ValidatedPlayerInput>( Constants.MAX_VALIDATED_PLAYER_INPUTS_ON_CLIENT ); }