示例#1
0
        public override void DoEventClient(Entitas.IContexts contexts, IEntity entity, IEvent e)
        {
            var            playerEntity = entity as PlayerEntity;
            Contexts       c            = contexts as Contexts;
            HitPlayerEvent ev           = e as HitPlayerEvent;

            if (playerEntity != null)
            {
                ClientEffectFactory.CreateHitPlayerEffect(c, playerEntity.entityKey.Value, ev);
            }
        }
示例#2
0
        public override void DoEventClient(Entitas.IContexts contexts, IEntity entity, IEvent e)
        {
            var            playerEntity = entity as PlayerEntity;
            Contexts       c            = contexts as Contexts;
            HitPlayerEvent ev           = e as HitPlayerEvent;

            if (playerEntity != null)
            {
                ClientEffectFactory.CreateHitPlayerEffect(c.clientEffect,
                                                          c.session.commonSession.EntityIdGenerator,
                                                          ev.HitPoint,
                                                          playerEntity.entityKey.Value,
                                                          ev.Target,
                                                          ev.Offset);
            }
        }