Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
 public AimEvent(AimEventType aimEventType) : base(EventType.AIM)
 {
     this.aimEventType  = aimEventType;
     aimEventTypeString = aimEventType.ToString();
 }