예제 #1
0
        /// <summary>
        /// Update world state one step
        /// </summary>
        /// <param name="targetWorld">Updating world</param>
        public void UpdateWorldOneStep(World targetWorld)
        {
            targetWorld.LogicTime.AddTime(Core.Common.GameLogicTime.Unit);

            targetWorld.Protagonist.UpdateStep();

            targetWorld.MyChannel.UpdateStep();
            PeopleSystem.UpdateEffect peopleSystemUpdateEffect = targetWorld.PeopleSystem.UpdateStep(targetWorld.MyChannel);
            targetWorld.MyChannel.ApplyPeopleResult(peopleSystemUpdateEffect);

            targetWorld.Shoppings.UpdateStep(targetWorld, targetWorld.DeliverySystem);
            targetWorld.DeliverySystem.UpdateStep(targetWorld, targetWorld.MyHome);

            _UpdatePaying(targetWorld);
        }
예제 #2
0
 public void NotifyStepEffect(PeopleSystem.UpdateEffect effect)
 {
     m_retainedSubscriber += effect.retainedSubscriber;
     m_leavedSubscriber   += effect.leavedSubscriber;
 }