Ejemplo n.º 1
0
 public static Offset <MonsterStat> CreateMonsterStat(FlatBufferBuilder builder,
                                                      Class cType = Class.Base,
                                                      int HP      = 0,
                                                      int ID      = 0)
 {
     builder.StartObject(3);
     MonsterStat.AddID(builder, ID);
     MonsterStat.AddHP(builder, HP);
     MonsterStat.AddCType(builder, cType);
     return(MonsterStat.EndMonsterStat(builder));
 }
Ejemplo n.º 2
0
 public static Offset <MonsterStat> CreateMonsterStat(FlatBufferBuilder builder,
                                                      Class cType = Class.Base,
                                                      StringOffset MonNameOffset = default(StringOffset),
                                                      int HP    = 0,
                                                      int MAXHP = 0,
                                                      int ID    = 0)
 {
     builder.StartObject(5);
     MonsterStat.AddID(builder, ID);
     MonsterStat.AddMAXHP(builder, MAXHP);
     MonsterStat.AddHP(builder, HP);
     MonsterStat.AddMonName(builder, MonNameOffset);
     MonsterStat.AddCType(builder, cType);
     return(MonsterStat.EndMonsterStat(builder));
 }