public static Offset <MonsterPool> CreateMonsterPool(FlatBufferBuilder builder, StringOffset levelOffset = default(StringOffset), StringOffset monster_idOffset = default(StringOffset), int shard_number = 0, int weight = 0) { builder.StartObject(4); MonsterPool.AddWeight(builder, weight); MonsterPool.AddShardNumber(builder, shard_number); MonsterPool.AddMonsterId(builder, monster_idOffset); MonsterPool.AddLevel(builder, levelOffset); return(MonsterPool.EndMonsterPool(builder)); }
public static MonsterPool GetRootAsMonsterPool(ByteBuffer _bb, MonsterPool obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public MonsterPool GetMonsterPool(MonsterPool obj, int j) { int o = __offset(20); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null); }