예제 #1
0
    static int PutMPObject(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        MPObject obj  = LuaScriptMgr.GetNetObject <MPObject>(L, 1);
        string   arg0 = LuaScriptMgr.GetLuaString(L, 2);

        com.gt.entities.IMPObject arg1 = LuaScriptMgr.GetNetObject <com.gt.entities.IMPObject>(L, 3);
        obj.PutMPObject(arg0, arg1);
        return(0);
    }
예제 #2
0
    static int GetMPObject(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        MPObject obj  = LuaScriptMgr.GetNetObject <MPObject>(L, 1);
        string   arg0 = LuaScriptMgr.GetLuaString(L, 2);

        com.gt.entities.IMPObject o = obj.GetMPObject(arg0);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }