public bool IsEventBlockExisted(string name, int id, AimEventType evt_type) { switch (evt_type) { case AimEventType.Anim: return(FindEventBlock <AnimEventBlock>(name, AnimEvents, id + 1) != null); case AimEventType.Fx: return(FindEventBlock <FxEventBlock>(name, FxEvents, id + 1) != null); case AimEventType.Sound: return(FindEventBlock <SoundEventBlock>(name, SoundEvents, id + 1) != null); case AimEventType.AnimTransition: return(FindEventBlock <AnimTransition>(name, AnimTrans, id + 1) != null); } return(false); }
public void AddEventBlock(AimEventType evt_type) { switch (evt_type) { case AimEventType.Anim: AnimEvents.Add(new AnimEventBlock()); break; case AimEventType.Fx: FxEvents.Add(new FxEventBlock()); break; case AimEventType.Sound: SoundEvents.Add(new SoundEventBlock()); break; case AimEventType.AnimTransition: AnimTrans.Add(new AnimTransition()); break; } }
public AimEvent(AimEventType aimEventType) : base(EventType.AIM) { this.aimEventType = aimEventType; aimEventTypeString = aimEventType.ToString(); }