Beispiel #1
0
        public static void Execute(PhysicsObj obj, AnimationHook animHook)
        {
            switch (animHook.HookType)
            {
            case AnimationHookType.AnimationDone:
                obj.Hook_AnimDone();
                break;

                /*case AnimationHookType.Ethereal:
                 *  if (animHook is EtherealHook hook)
                 *      obj.set_ethereal(Convert.ToBoolean(hook.Ethereal), false);
                 *  break;*/
            }
        }
Beispiel #2
0
        public static void Execute(PhysicsObj obj, AnimationHook animHook)
        {
            switch (animHook.HookType)
            {
            case AnimationHookType.AnimationDone:
                obj.Hook_AnimDone();
                break;

            /*case AnimationHookType.Ethereal:
             *  if (animHook is EtherealHook hook)
             *      obj.set_ethereal(Convert.ToBoolean(hook.Ethereal), false);
             *  break;*/

            case AnimationHookType.CreateParticle:
                if (animHook is CreateParticleHook hook)
                {
                    obj.create_particle_emitter(hook.EmitterInfoId, (int)hook.PartIndex, new AFrame(hook.Offset), (int)hook.EmitterId);
                }
                break;
            }
        }
Beispiel #3
0
 public override bool Execute(PhysicsObj obj)
 {
     obj.Hook_AnimDone();
     return(true);
 }