Esempio n. 1
0
        public void RewindTo(IEvent value)
        {
            HitEnvironmentEvent right = value as HitEnvironmentEvent;

            Offset   = right.Offset;
            HitPoint = right.HitPoint;
        }
        public void RewindTo(IEvent value)
        {
            HitEnvironmentEvent right = value as HitEnvironmentEvent;

            Offset           = right.Offset;
            HitPoint         = right.HitPoint;
            HitAudioId       = right.HitAudioId;
            EnvironmentType  = right.EnvironmentType;
            needEffectEntity = right.needEffectEntity;
            ChunkId          = right.ChunkId;
        }
Esempio n. 3
0
        public override void DoEventClient(Entitas.IContexts contexts, IEntity entity, IEvent e)
        {
            var                 playerEntity = entity as PlayerEntity;
            Contexts            c            = contexts as Contexts;
            HitEnvironmentEvent ev           = e as HitEnvironmentEvent;

            if (playerEntity != null)
            {
                ClientEffectFactory.CreateHitEnvironmentEffect(c.clientEffect,
                                                               c.session.commonSession.EntityIdGenerator,
                                                               ev.HitPoint,
                                                               ev.Offset,
                                                               playerEntity.entityKey.Value, ev.EnvironmentType);
            }
        }
        public override void DoEventClient(Entitas.IContexts contexts, IEntity entity, IEvent e)
        {
            HitEnvironmentEvent hitEvent = e as HitEnvironmentEvent;

            ClientEffectFactory.CreateHitEnvironmentEffect(hitEvent);
        }