Ejemplo n.º 1
0
        public void RewindTo(IEvent value)
        {
            HitVehicleEvent right = value as HitVehicleEvent;

            Target   = right.Target;
            Offset   = right.Offset;
            Normal   = right.Normal;
            HitPoint = right.HitPoint;
        }
Ejemplo n.º 2
0
        public override void DoEventClient(Entitas.IContexts contexts, IEntity entity, IEvent e)
        {
            var             playerEntity = entity as PlayerEntity;
            Contexts        c            = contexts as Contexts;
            HitVehicleEvent ev           = e as HitVehicleEvent;

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