Esempio n. 1
0
 private static void setNativeObjectId(Int64 instance, int nativeObjectId, string luaObjectId)
 {
     if (instance != 0)
     {
         LuaObjectReference objRef = LuaObjectReference.findObject(instance);
         LuaBaseObject      luaObj = objRef.target as LuaBaseObject;
         if (luaObj != null)
         {
             luaObj.objectId    = nativeObjectId;
             luaObj.luaObjectId = luaObjectId;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 写入一个对象类型
 /// </summary>
 /// <param name="value">对象</param>
 public void writeObject(LuaBaseObject value)
 {
     value.serialization(this);
 }