public static int set_Finder(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); FindHero findHero; int num = LuaObject.checkDelegate <FindHero>(l, 2, out findHero); if (num == 0) { heroAssistants.Finder = findHero; } else if (num == 1) { HeroAssistants heroAssistants2 = heroAssistants; heroAssistants2.Finder = (FindHero)Delegate.Combine(heroAssistants2.Finder, findHero); } else if (num == 2) { HeroAssistants heroAssistants3 = heroAssistants; heroAssistants3.Finder = (FindHero)Delegate.Remove(heroAssistants3.Finder, findHero); } LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Compute(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); ComputeBattlePower computeBattlePower; int num = LuaObject.checkDelegate <ComputeBattlePower>(l, 2, out computeBattlePower); if (num == 0) { heroAssistants.Compute = computeBattlePower; } else if (num == 1) { HeroAssistants heroAssistants2 = heroAssistants; heroAssistants2.Compute = (ComputeBattlePower)Delegate.Combine(heroAssistants2.Compute, computeBattlePower); } else if (num == 2) { HeroAssistants heroAssistants3 = heroAssistants; heroAssistants3.Compute = (ComputeBattlePower)Delegate.Remove(heroAssistants3.Compute, computeBattlePower); } LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Now(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); CurrentTime currentTime; int num = LuaObject.checkDelegate <CurrentTime>(l, 2, out currentTime); if (num == 0) { heroAssistants.Now = currentTime; } else if (num == 1) { HeroAssistants heroAssistants2 = heroAssistants; heroAssistants2.Now = (CurrentTime)Delegate.Combine(heroAssistants2.Now, currentTime); } else if (num == 2) { HeroAssistants heroAssistants3 = heroAssistants; heroAssistants3.Now = (CurrentTime)Delegate.Remove(heroAssistants3.Now, currentTime); } LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_GetLevel(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); GetUserLevel getUserLevel; int num = LuaObject.checkDelegate <GetUserLevel>(l, 2, out getUserLevel); if (num == 0) { heroAssistants.GetLevel = getUserLevel; } else if (num == 1) { HeroAssistants heroAssistants2 = heroAssistants; heroAssistants2.GetLevel = (GetUserLevel)Delegate.Combine(heroAssistants2.GetLevel, getUserLevel); } else if (num == 2) { HeroAssistants heroAssistants3 = heroAssistants; heroAssistants3.GetLevel = (GetUserLevel)Delegate.Remove(heroAssistants3.GetLevel, getUserLevel); } LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ReloadConfigData(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); heroAssistants.ReloadConfigData(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_ConfigDataLoader(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroAssistants.ConfigDataLoader); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { HeroAssistants o = new HeroAssistants(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_ConfigDataLoader(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); heroAssistants.ConfigDataLoader = configDataLoader; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Assignments(IntPtr l) { int result; try { HeroAssistants heroAssistants = (HeroAssistants)LuaObject.checkSelf(l); List <HeroAssistantsTaskAssignment> assignments; LuaObject.checkType <List <HeroAssistantsTaskAssignment> >(l, 2, out assignments); heroAssistants.Assignments = assignments; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }