Exemple #1
0
 static int SetData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.FightDataManager));
         obj.SetData();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #2
0
 static int GetFightDataManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         MyFrameWork.FightDataManager o = MyFrameWork.LuaHelper.GetFightDataManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #3
0
 static int OnRankChangeCBK(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.FightDataManager));
         object arg0 = ToLua.ToVarObject(L, 2);
         obj.OnRankChangeCBK(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #4
0
 static int OnFaceCBK(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.FightDataManager));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.OnFaceCBK(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #5
0
    static int set_Moves(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.Moves = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Moves on a nil value" : e.Message));
        }
    }
Exemple #6
0
    static int set_DicMyBossHp(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)o;
            System.Collections.Generic.Dictionary <int, int> arg0 = (System.Collections.Generic.Dictionary <int, int>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary <int, int>));
            obj.DicMyBossHp = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index DicMyBossHp on a nil value" : e.Message));
        }
    }
Exemple #7
0
    static int set_LevelId(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)o;
            int[] arg0 = ToLua.CheckNumberArray <int>(L, 2);
            obj.LevelId = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index LevelId on a nil value" : e.Message));
        }
    }
Exemple #8
0
    static int get_moduleFight(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)o;
            FightNew.ModuleFight         ret = obj.moduleFight;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moduleFight on a nil value" : e.Message));
        }
    }
Exemple #9
0
    static int get_OpponentCurrentTotalHp(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)o;
            int ret = obj.OpponentCurrentTotalHp;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index OpponentCurrentTotalHp on a nil value" : e.Message));
        }
    }
Exemple #10
0
    static int get_DicMyBossHp(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)o;
            System.Collections.Generic.Dictionary <int, int> ret = obj.DicMyBossHp;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index DicMyBossHp on a nil value" : e.Message));
        }
    }
Exemple #11
0
    static int get_LevelId(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)o;
            int[] ret = obj.LevelId;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index LevelId on a nil value" : e.Message));
        }
    }
Exemple #12
0
 static int OnFightCBK(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 8);
         MyFrameWork.FightDataManager obj = (MyFrameWork.FightDataManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.FightDataManager));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
         int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
         int arg5 = (int)LuaDLL.luaL_checknumber(L, 7);
         int arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
         obj.OnFightCBK(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }