コード例 #1
0
        public void Apply(IStateContainer <IWeatherState> stateContainer)
        {
            stateContainer.LoadState();

            stateContainer.State.Forecasts = this.forecasts;
        }
コード例 #2
0
        public void Apply(IStateContainer <IMyCounterState> stateContainer)
        {
            stateContainer.LoadState();

            stateContainer.State.Count += 1;
        }