static public int get_scene(IntPtr l) { try { TableConfig.LevelMonster self = (TableConfig.LevelMonster)checkSelf(l); pushValue(l, true); pushValue(l, self.scene); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { TableConfig.LevelMonster o; o = new TableConfig.LevelMonster(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_group(IntPtr l) { try { TableConfig.LevelMonster self = (TableConfig.LevelMonster)checkSelf(l); System.Int32 v; checkType(l, 2, out v); self.group = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int WriteToBinary(IntPtr l) { try { TableConfig.LevelMonster self = (TableConfig.LevelMonster)checkSelf(l); GameFramework.BinaryTable a1; checkType(l, 2, out a1); self.WriteToBinary(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_aiParams(IntPtr l) { try { TableConfig.LevelMonster self = (TableConfig.LevelMonster)checkSelf(l); System.Collections.Generic.List <System.String> v; checkType(l, 2, out v); self.aiParams = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int ReadFromBinary(IntPtr l) { try { TableConfig.LevelMonster self = (TableConfig.LevelMonster)checkSelf(l); GameFramework.BinaryTable a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); var ret = self.ReadFromBinary(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
public void BuildGroupedLevelMonsters() { for (int i = 0; i < m_LevelMonsterMgr.GetDataCount(); ++i) { LevelMonster monster = m_LevelMonsterMgr.GetData()[i]; List <LevelMonster> list; int group = monster.group; if (m_GroupedLevelMonsters.TryGetValue(group, out list)) { list.Add(monster); } else { list = new List <LevelMonster>(); list.Add(monster); m_GroupedLevelMonsters.Add(monster.group, list); } } }