示例#1
0
    static int Lua_ToString(IntPtr L)
    {
        GamePublic obj = LuaScriptMgr.GetNetObject <GamePublic>(L, 1);

        LuaScriptMgr.Push(L, obj.ToString());
        return(1);
    }
示例#2
0
    static int ToString(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        GamePublic obj = LuaScriptMgr.GetNetObject <GamePublic>(L, 1);
        string     o   = obj.ToString();

        LuaScriptMgr.Push(L, o);
        return(1);
    }