public void AddHero(S2c_aoi_addself cmd) { if (!PreLoadingScene.inPreloading) { this.entityCreate.AddHero(cmd); this.curSceneNo = cmd.nmsg.map_no; this.curSceneId = cmd.nmsg.map_id; Util.CallMethod("Game", "LoadSceneViaPreloading", new object[] { cmd.nmsg.map_no }); } }
private static int AddHero(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 2); EntityCreate entityCreate = (EntityCreate)ToLua.CheckObject(L, 1, typeof(EntityCreate)); S2c_aoi_addself cmd = (S2c_aoi_addself)ToLua.CheckObject(L, 2, typeof(S2c_aoi_addself)); entityCreate.AddHero(cmd); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }
private static int set_nmsg(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); S2c_aoi_addself s2c_aoi_addself = (S2c_aoi_addself)obj; Aoi_add_normalmsg nmsg = (Aoi_add_normalmsg)ToLua.CheckObject(L, 2, typeof(Aoi_add_normalmsg)); s2c_aoi_addself.nmsg = nmsg; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index nmsg on a nil value"); } return(result); }
private static int get_sync(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); S2c_aoi_addself s2c_aoi_addself = (S2c_aoi_addself)obj; S2c_aoi_syncplayer sync = s2c_aoi_addself.sync; ToLua.PushObject(L, sync); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index sync on a nil value"); } return(result); }
private static int get__heroInfo(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); EntityCreate entityCreate = (EntityCreate)obj; S2c_aoi_addself heroInfo = entityCreate._heroInfo; ToLua.PushObject(L, heroInfo); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index _heroInfo on a nil value"); } return(result); }
private static int _CreateAoi_S2c_aoi_addself(IntPtr L) { int result; try { if (LuaDLL.lua_gettop(L) == 0) { S2c_aoi_addself o = new S2c_aoi_addself(); ToLua.PushObject(L, o); result = 1; } else { result = LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Aoi.S2c_aoi_addself.New"); } } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }