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