Example #1
0
 static int NewFromBinaryData(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     com.gt.units.ByteArray   arg0 = LuaScriptMgr.GetNetObject <com.gt.units.ByteArray>(L, 1);
     com.gt.entities.MPObject o    = MPObject.NewFromBinaryData(arg0);
     LuaScriptMgr.PushObject(L, o);
     return(1);
 }
Example #2
0
    static int ToBinary(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        MPObject obj = LuaScriptMgr.GetNetObject <MPObject>(L, 1);

        com.gt.units.ByteArray o = obj.ToBinary();
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
Example #3
0
    static int PutByteArray(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        MPObject obj  = LuaScriptMgr.GetNetObject <MPObject>(L, 1);
        string   arg0 = LuaScriptMgr.GetLuaString(L, 2);

        com.gt.units.ByteArray arg1 = LuaScriptMgr.GetNetObject <com.gt.units.ByteArray>(L, 3);
        obj.PutByteArray(arg0, arg1);
        return(0);
    }
Example #4
0
    static int GetByteArray(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        MPObject obj  = LuaScriptMgr.GetNetObject <MPObject>(L, 1);
        string   arg0 = LuaScriptMgr.GetLuaString(L, 2);

        com.gt.units.ByteArray o = obj.GetByteArray(arg0);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }