Ejemplo n.º 1
0
        public override IEnumerator <YieldInstruction> Apply(GameEventOwner owner, Character ownerChar, Character character)
        {
            object[]    parameters = new object[] { owner, ownerChar, character };
            LuaFunction func_iter  = LuaEngine.Instance.CreateCoroutineIterator(Script, parameters);

            return(ScriptEvent.ApplyFunc(func_iter));
        }
Ejemplo n.º 2
0
 public EventQueueElement(GameEventOwner owner, Character ownerChar, T newEvent, Character targetChar)
 {
     Owner      = owner;
     OwnerChar  = ownerChar;
     Event      = newEvent;
     TargetChar = targetChar;
 }
Ejemplo n.º 3
0
        public override void Apply(GameEventOwner owner, Character character, int[] skillIndices)
        {
            LuaFunction luafun = LuaEngine.Instance.LuaState.GetFunction(Script);

            if (luafun != null)
            {
                luafun.Call(new object[] { owner, character, skillIndices });
            }
        }
Ejemplo n.º 4
0
 public abstract void Apply(GameEventOwner owner, Character ownerChar, int attacking, int defending, ref int effectiveness);
Ejemplo n.º 5
0
 public abstract IEnumerator <YieldInstruction> Apply(GameEventOwner owner, Character ownerChar, Character character, MapStatus status, bool msg);
Ejemplo n.º 6
0
 public abstract IEnumerator <YieldInstruction> Apply(GameEventOwner owner, Character ownerChar, Character character);
Ejemplo n.º 7
0
 public abstract IEnumerator <YieldInstruction> Apply(GameEventOwner owner, Character ownerChar, BattleContext context);
Ejemplo n.º 8
0
 public abstract void Apply(GameEventOwner owner, Character character, int[] skillIndices);
Ejemplo n.º 9
0
 public abstract void Apply(GameEventOwner owner, Character ownerChar, ref int hpChange);
Ejemplo n.º 10
0
 public abstract void Apply(GameEventOwner owner, Character ownerChar, Character character);