コード例 #1
0
    static int set_expr(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DebugSystem.GameDebugWatcherComponent obj = (DebugSystem.GameDebugWatcherComponent)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.expr = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index expr on a nil value"));
        }
    }
コード例 #2
0
    static int get_expr(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DebugSystem.GameDebugWatcherComponent obj = (DebugSystem.GameDebugWatcherComponent)o;
            string ret = obj.expr;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index expr on a nil value"));
        }
    }
コード例 #3
0
    static int set_self(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DebugSystem.GameDebugWatcherComponent obj = (DebugSystem.GameDebugWatcherComponent)o;
            LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
            obj.self = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index self on a nil value"));
        }
    }
コード例 #4
0
    static int get_self(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DebugSystem.GameDebugWatcherComponent obj = (DebugSystem.GameDebugWatcherComponent)o;
            LuaInterface.LuaTable ret = obj.self;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index self on a nil value"));
        }
    }