Ejemplo n.º 1
0
 public ParticleEffect2(UpdateEffect updatemethod, object[] param)
 {
     this.param = param;
     myUpdate   = updatemethod;
     time       = 0;
     isActive   = true;
 }
Ejemplo n.º 2
0
        public UpdateEffect UpdateStep(MyChannel channel)
        {
            UpdateEffect updateResult = new UpdateEffect()
            {
                retainedSubscriber = 0,
                leavedSubscriber   = 0,
            };

            foreach (Core.Game.Population currentPopulation in m_populations)
            {
                Core.Game.Population.UpdateResult popuplationUpdateResult = currentPopulation.UpdateStep(channel);
                updateResult.retainedSubscriber += popuplationUpdateResult.newlyAddedSubscriber + popuplationUpdateResult.returnedSubscriber;
                updateResult.leavedSubscriber   += popuplationUpdateResult.leavedSubscriber;
            }

            return(updateResult);
        }
Ejemplo n.º 3
0
 public ParticleEffect2(UpdateEffect ue)
     : this(ue, null)
 {
 }