Beispiel #1
0
        static int _m_TryGetValue(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.Dictionary <xc.UnitID, Actor> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <xc.UnitID, Actor>)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.UnitID key = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));
                    Actor     value;

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.TryGetValue(key, out value);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    translator.Push(L, value);



                    return(2);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #2
0
        static int __CreateInstance(RealStatePtr L)
        {
            
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			try {
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					xc.UnitID __cl_gen_ret = new xc.UnitID();
					translator.Push(L, __cl_gen_ret);
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
				{
					byte t = (byte)LuaAPI.lua_tonumber(L, 2);
					uint idx = LuaAPI.xlua_touint(L, 3);
					
					xc.UnitID __cl_gen_ret = new xc.UnitID(t, idx);
					translator.Push(L, __cl_gen_ret);
					return 1;
				}
				
			}
			catch(System.Exception __gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to xc.UnitID constructor!");
            
        }
Beispiel #3
0
 static int _m_ToString(RealStatePtr L)
 {
     
     ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
     
     
     xc.UnitID __cl_gen_to_be_invoked = (xc.UnitID)translator.FastGetCSObj(L, 1);
     
     
     try {
         
         {
             
                 string __cl_gen_ret = __cl_gen_to_be_invoked.ToString(  );
                 LuaAPI.lua_pushstring(L, __cl_gen_ret);
             
             
             
             return 1;
         }
         
     } catch(System.Exception __gen_e) {
         return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
     }
     
 }
Beispiel #4
0
        static int _m_CreatePet(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ActorManager __cl_gen_to_be_invoked = (xc.ActorManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint pet_id  = LuaAPI.xlua_touint(L, 2);
                    uint actorId = LuaAPI.xlua_touint(L, 3);
                    UnityEngine.Vector3    pos; translator.Get(L, 4, out pos);
                    UnityEngine.Quaternion rot; translator.Get(L, 5, out rot);
                    Actor parent = (Actor)translator.GetObject(L, 6, typeof(Actor));

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreatePet(pet_id, actorId, pos, rot, parent);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #5
0
        static int _m_CreateWorshipModelForLua_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 11 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && (LuaAPI.lua_isnil(L, 8) || LuaAPI.lua_type(L, 8) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 9) || LuaAPI.lua_type(L, 9) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 10) || LuaAPI.lua_type(L, 10) == LuaTypes.LUA_TTABLE) && translator.Assignable <System.Action <Actor> >(L, 11))
                {
                    uint                  type_id      = LuaAPI.xlua_touint(L, 1);
                    uint                  uid          = LuaAPI.xlua_touint(L, 2);
                    uint                  rank         = LuaAPI.xlua_touint(L, 3);
                    string                name         = LuaAPI.lua_tostring(L, 4);
                    string                guildName    = LuaAPI.lua_tostring(L, 5);
                    uint                  honor        = LuaAPI.xlua_touint(L, 6);
                    uint                  title        = LuaAPI.xlua_touint(L, 7);
                    XLua.LuaTable         modIdLst     = (XLua.LuaTable)translator.GetObject(L, 8, typeof(XLua.LuaTable));
                    XLua.LuaTable         fashions     = (XLua.LuaTable)translator.GetObject(L, 9, typeof(XLua.LuaTable));
                    XLua.LuaTable         suit_effects = (XLua.LuaTable)translator.GetObject(L, 10, typeof(XLua.LuaTable));
                    System.Action <Actor> cbResLoad    = translator.GetDelegate <System.Action <Actor> >(L, 11);

                    xc.UnitID __cl_gen_ret = xc.WorshipModel.CreateWorshipModelForLua(type_id, uid, rank, name, guildName, honor, title, modIdLst, fashions, suit_effects, cbResLoad);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 10 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && (LuaAPI.lua_isnil(L, 8) || LuaAPI.lua_type(L, 8) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 9) || LuaAPI.lua_type(L, 9) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 10) || LuaAPI.lua_type(L, 10) == LuaTypes.LUA_TTABLE))
                {
                    uint          type_id      = LuaAPI.xlua_touint(L, 1);
                    uint          uid          = LuaAPI.xlua_touint(L, 2);
                    uint          rank         = LuaAPI.xlua_touint(L, 3);
                    string        name         = LuaAPI.lua_tostring(L, 4);
                    string        guildName    = LuaAPI.lua_tostring(L, 5);
                    uint          honor        = LuaAPI.xlua_touint(L, 6);
                    uint          title        = LuaAPI.xlua_touint(L, 7);
                    XLua.LuaTable modIdLst     = (XLua.LuaTable)translator.GetObject(L, 8, typeof(XLua.LuaTable));
                    XLua.LuaTable fashions     = (XLua.LuaTable)translator.GetObject(L, 9, typeof(XLua.LuaTable));
                    XLua.LuaTable suit_effects = (XLua.LuaTable)translator.GetObject(L, 10, typeof(XLua.LuaTable));

                    xc.UnitID __cl_gen_ret = xc.WorshipModel.CreateWorshipModelForLua(type_id, uid, rank, name, guildName, honor, title, modIdLst, fashions, suit_effects);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.WorshipModel.CreateWorshipModelForLua!"));
        }
        static int _m_CreateClientModelByCloneForLua_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 4 && translator.Assignable <Actor>(L, 1) && translator.Assignable <System.Action <Actor> >(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
                {
                    Actor actor = (Actor)translator.GetObject(L, 1, typeof(Actor));
                    System.Action <Actor> actionAfterLoad = translator.GetDelegate <System.Action <Actor> >(L, 2);
                    bool updateWithRawActor = LuaAPI.lua_toboolean(L, 3);
                    bool isUIModel          = LuaAPI.lua_toboolean(L, 4);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelByCloneForLua(actor, actionAfterLoad, updateWithRawActor, isUIModel);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && translator.Assignable <Actor>(L, 1) && translator.Assignable <System.Action <Actor> >(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    Actor actor = (Actor)translator.GetObject(L, 1, typeof(Actor));
                    System.Action <Actor> actionAfterLoad = translator.GetDelegate <System.Action <Actor> >(L, 2);
                    bool updateWithRawActor = LuaAPI.lua_toboolean(L, 3);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelByCloneForLua(actor, actionAfterLoad, updateWithRawActor);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <Actor>(L, 1) && translator.Assignable <System.Action <Actor> >(L, 2))
                {
                    Actor actor = (Actor)translator.GetObject(L, 1, typeof(Actor));
                    System.Action <Actor> actionAfterLoad = translator.GetDelegate <System.Action <Actor> >(L, 2);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelByCloneForLua(actor, actionAfterLoad);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ClientModel.CreateClientModelByCloneForLua!"));
        }
Beispiel #7
0
        static int _g_get_obj_idx(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                xc.UnitID __cl_gen_to_be_invoked = (xc.UnitID)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.obj_idx);
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 1;
        }
Beispiel #8
0
        static int _s_set_type(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
			
                xc.UnitID __cl_gen_to_be_invoked = (xc.UnitID)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.type = (byte)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            return 0;
        }
Beispiel #9
0
        static int _m_Equals(RealStatePtr L)
        {
            
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            xc.UnitID __cl_gen_to_be_invoked = (xc.UnitID)translator.FastGetCSObj(L, 1);
            
            
			int __gen_param_count = LuaAPI.lua_gettop(L);
            
            try {
                if(__gen_param_count == 2&& translator.Assignable<object>(L, 2)) 
                {
                    object obj = translator.GetObject(L, 2, typeof(object));
                    
                        bool __cl_gen_ret = __cl_gen_to_be_invoked.Equals( obj );
                        LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                if(__gen_param_count == 2&& translator.Assignable<xc.UnitID>(L, 2)) 
                {
                    xc.UnitID a = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));
                    
                        bool __cl_gen_ret = __cl_gen_to_be_invoked.Equals( a );
                        LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception __gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to xc.UnitID.Equals!");
            
        }
Beispiel #10
0
        public static int __NewIndexer(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (translator.Assignable <System.Collections.Generic.Dictionary <xc.UnitID, Actor> >(L, 1) && translator.Assignable <xc.UnitID>(L, 2) && translator.Assignable <Actor>(L, 3))
                {
                    System.Collections.Generic.Dictionary <xc.UnitID, Actor> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <xc.UnitID, Actor>)translator.FastGetCSObj(L, 1);
                    xc.UnitID key = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));
                    __cl_gen_to_be_invoked[key] = (Actor)translator.GetObject(L, 3, typeof(Actor));
                    LuaAPI.lua_pushboolean(L, true);
                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            LuaAPI.lua_pushboolean(L, false);
            return(1);
        }
Beispiel #11
0
        static int _m_GetAvailableModelId_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    byte actor_type = (byte)LuaAPI.lua_tonumber(L, 1);

                    xc.UnitID __cl_gen_ret = xc.ActorManager.GetAvailableModelId(actor_type);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_DelOneEmey(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.UnitID uid = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));

                    __cl_gen_to_be_invoked.DelOneEmey(uid);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #13
0
        static int _m_GetActor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ActorManager __cl_gen_to_be_invoked = (xc.ActorManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint uid = LuaAPI.xlua_touint(L, 2);

                    Actor __cl_gen_ret = __cl_gen_to_be_invoked.GetActor(uid);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <xc.UnitID>(L, 2))
                {
                    xc.UnitID id = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));

                    Actor __cl_gen_ret = __cl_gen_to_be_invoked.GetActor(id);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ActorManager.GetActor!"));
        }
Beispiel #14
0
        static int __EqMeta(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
			try {
				if (translator.Assignable<xc.UnitID>(L, 1) && translator.Assignable<xc.UnitID>(L, 2))
				{
					xc.UnitID leftside = (xc.UnitID)translator.GetObject(L, 1, typeof(xc.UnitID));
					xc.UnitID rightside = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));
					
					LuaAPI.lua_pushboolean(L, leftside == rightside);
					
					return 1;
				}
			}
			catch(System.Exception __gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + __gen_e);
			}
            
            return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need xc.UnitID!");
            
        }
Beispiel #15
0
        static int _m_DestroyActor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ActorManager __cl_gen_to_be_invoked = (xc.ActorManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <xc.UnitID>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    xc.UnitID id        = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));
                    float     delayTime = (float)LuaAPI.lua_tonumber(L, 3);

                    __cl_gen_to_be_invoked.DestroyActor(id, delayTime);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <xc.UnitID>(L, 2))
                {
                    xc.UnitID id = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));

                    __cl_gen_to_be_invoked.DestroyActor(id);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ActorManager.DestroyActor!"));
        }
Beispiel #16
0
        static int _m_GetUnitCacheInfo(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ActorManager __cl_gen_to_be_invoked = (xc.ActorManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.UnitID uid = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));

                    xc.UnitCacheInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetUnitCacheInfo(uid);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #17
0
        static int _m_Add(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.Dictionary <xc.UnitID, Actor> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <xc.UnitID, Actor>)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.UnitID key   = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));
                    Actor     value = (Actor)translator.GetObject(L, 3, typeof(Actor));

                    __cl_gen_to_be_invoked.Add(key, value);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #18
0
        static int _m_CreateNPC(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.NpcManager __cl_gen_to_be_invoked = (xc.NpcManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Actor>(L, 3))
                {
                    int   npcId  = LuaAPI.xlua_tointeger(L, 2);
                    Actor parent = (Actor)translator.GetObject(L, 3, typeof(Actor));

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcId, parent);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int npcId = LuaAPI.xlua_tointeger(L, 2);

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcId);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && translator.Assignable <Neptune.NPC>(L, 2) && translator.Assignable <Actor>(L, 3))
                {
                    Neptune.NPC npcInfo = (Neptune.NPC)translator.GetObject(L, 2, typeof(Neptune.NPC));
                    Actor       parent  = (Actor)translator.GetObject(L, 3, typeof(Actor));

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcInfo, parent);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <Neptune.NPC>(L, 2))
                {
                    Neptune.NPC npcInfo = (Neptune.NPC)translator.GetObject(L, 2, typeof(Neptune.NPC));

                    xc.UnitID __cl_gen_ret = __cl_gen_to_be_invoked.CreateNPC(npcInfo);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.NpcManager.CreateNPC!"));
        }
Beispiel #19
0
        static int _m_CreateClientModelForLua_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 9 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TTABLE) && translator.Assignable <System.Action <Actor> >(L, 6) && (LuaAPI.lua_isnil(L, 7) || LuaAPI.lua_type(L, 7) == LuaTypes.LUA_TTABLE) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9))
                {
                    uint                  type_id            = LuaAPI.xlua_touint(L, 1);
                    uint                  uid                = LuaAPI.xlua_touint(L, 2);
                    XLua.LuaTable         modIdLst           = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    XLua.LuaTable         fashions           = (XLua.LuaTable)translator.GetObject(L, 4, typeof(XLua.LuaTable));
                    XLua.LuaTable         suit_effects       = (XLua.LuaTable)translator.GetObject(L, 5, typeof(XLua.LuaTable));
                    System.Action <Actor> cbResLoad          = translator.GetDelegate <System.Action <Actor> >(L, 6);
                    XLua.LuaTable         no_show_parts      = (XLua.LuaTable)translator.GetObject(L, 7, typeof(XLua.LuaTable));
                    bool                  is_ui_model        = LuaAPI.lua_toboolean(L, 8);
                    bool                  updateWithRawActor = LuaAPI.lua_toboolean(L, 9);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad, no_show_parts, is_ui_model, updateWithRawActor);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TTABLE) && translator.Assignable <System.Action <Actor> >(L, 6) && (LuaAPI.lua_isnil(L, 7) || LuaAPI.lua_type(L, 7) == LuaTypes.LUA_TTABLE) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8))
                {
                    uint                  type_id       = LuaAPI.xlua_touint(L, 1);
                    uint                  uid           = LuaAPI.xlua_touint(L, 2);
                    XLua.LuaTable         modIdLst      = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    XLua.LuaTable         fashions      = (XLua.LuaTable)translator.GetObject(L, 4, typeof(XLua.LuaTable));
                    XLua.LuaTable         suit_effects  = (XLua.LuaTable)translator.GetObject(L, 5, typeof(XLua.LuaTable));
                    System.Action <Actor> cbResLoad     = translator.GetDelegate <System.Action <Actor> >(L, 6);
                    XLua.LuaTable         no_show_parts = (XLua.LuaTable)translator.GetObject(L, 7, typeof(XLua.LuaTable));
                    bool                  is_ui_model   = LuaAPI.lua_toboolean(L, 8);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad, no_show_parts, is_ui_model);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TTABLE) && translator.Assignable <System.Action <Actor> >(L, 6) && (LuaAPI.lua_isnil(L, 7) || LuaAPI.lua_type(L, 7) == LuaTypes.LUA_TTABLE))
                {
                    uint                  type_id       = LuaAPI.xlua_touint(L, 1);
                    uint                  uid           = LuaAPI.xlua_touint(L, 2);
                    XLua.LuaTable         modIdLst      = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    XLua.LuaTable         fashions      = (XLua.LuaTable)translator.GetObject(L, 4, typeof(XLua.LuaTable));
                    XLua.LuaTable         suit_effects  = (XLua.LuaTable)translator.GetObject(L, 5, typeof(XLua.LuaTable));
                    System.Action <Actor> cbResLoad     = translator.GetDelegate <System.Action <Actor> >(L, 6);
                    XLua.LuaTable         no_show_parts = (XLua.LuaTable)translator.GetObject(L, 7, typeof(XLua.LuaTable));

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad, no_show_parts);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TTABLE) && translator.Assignable <System.Action <Actor> >(L, 6))
                {
                    uint                  type_id      = LuaAPI.xlua_touint(L, 1);
                    uint                  uid          = LuaAPI.xlua_touint(L, 2);
                    XLua.LuaTable         modIdLst     = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    XLua.LuaTable         fashions     = (XLua.LuaTable)translator.GetObject(L, 4, typeof(XLua.LuaTable));
                    XLua.LuaTable         suit_effects = (XLua.LuaTable)translator.GetObject(L, 5, typeof(XLua.LuaTable));
                    System.Action <Actor> cbResLoad    = translator.GetDelegate <System.Action <Actor> >(L, 6);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TTABLE) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TTABLE))
                {
                    uint          type_id      = LuaAPI.xlua_touint(L, 1);
                    uint          uid          = LuaAPI.xlua_touint(L, 2);
                    XLua.LuaTable modIdLst     = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    XLua.LuaTable fashions     = (XLua.LuaTable)translator.GetObject(L, 4, typeof(XLua.LuaTable));
                    XLua.LuaTable suit_effects = (XLua.LuaTable)translator.GetObject(L, 5, typeof(XLua.LuaTable));

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 9 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5) && translator.Assignable <System.Action <Actor> >(L, 6) && translator.Assignable <System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART> >(L, 7) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9))
                {
                    uint type_id = LuaAPI.xlua_touint(L, 1);
                    uint uid     = LuaAPI.xlua_touint(L, 2);
                    System.Collections.Generic.List <uint> modIdLst     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> fashions     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>));
                    System.Action <Actor> cbResLoad = translator.GetDelegate <System.Action <Actor> >(L, 6);
                    System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART> no_show_parts = (System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART>)translator.GetObject(L, 7, typeof(System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART>));
                    bool is_ui_model        = LuaAPI.lua_toboolean(L, 8);
                    bool updateWithRawActor = LuaAPI.lua_toboolean(L, 9);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad, no_show_parts, is_ui_model, updateWithRawActor);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5) && translator.Assignable <System.Action <Actor> >(L, 6) && translator.Assignable <System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART> >(L, 7) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8))
                {
                    uint type_id = LuaAPI.xlua_touint(L, 1);
                    uint uid     = LuaAPI.xlua_touint(L, 2);
                    System.Collections.Generic.List <uint> modIdLst     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> fashions     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>));
                    System.Action <Actor> cbResLoad = translator.GetDelegate <System.Action <Actor> >(L, 6);
                    System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART> no_show_parts = (System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART>)translator.GetObject(L, 7, typeof(System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART>));
                    bool is_ui_model = LuaAPI.lua_toboolean(L, 8);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad, no_show_parts, is_ui_model);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5) && translator.Assignable <System.Action <Actor> >(L, 6) && translator.Assignable <System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART> >(L, 7))
                {
                    uint type_id = LuaAPI.xlua_touint(L, 1);
                    uint uid     = LuaAPI.xlua_touint(L, 2);
                    System.Collections.Generic.List <uint> modIdLst     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> fashions     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>));
                    System.Action <Actor> cbResLoad = translator.GetDelegate <System.Action <Actor> >(L, 6);
                    System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART> no_show_parts = (System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART>)translator.GetObject(L, 7, typeof(System.Collections.Generic.List <xc.DBAvatarPart.BODY_PART>));

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad, no_show_parts);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5) && translator.Assignable <System.Action <Actor> >(L, 6))
                {
                    uint type_id = LuaAPI.xlua_touint(L, 1);
                    uint uid     = LuaAPI.xlua_touint(L, 2);
                    System.Collections.Generic.List <uint> modIdLst     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> fashions     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>));
                    System.Action <Actor> cbResLoad = translator.GetDelegate <System.Action <Actor> >(L, 6);

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects, cbResLoad);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5))
                {
                    uint type_id = LuaAPI.xlua_touint(L, 1);
                    uint uid     = LuaAPI.xlua_touint(L, 2);
                    System.Collections.Generic.List <uint> modIdLst     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> fashions     = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>));
                    System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>));

                    xc.UnitID __cl_gen_ret = xc.ClientModel.CreateClientModelForLua(type_id, uid, modIdLst, fashions, suit_effects);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ClientModel.CreateClientModelForLua!"));
        }