Esempio 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;
        }
Esempio 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);
            }
        }