Ejemplo n.º 1
0
 public static Offset <MonsterDataV2> CreateMonsterDataV2(FlatBufferBuilder builder,
                                                          StringOffset nameOffset = default(StringOffset),
                                                          uint hp       = 0,
                                                          float hitRate = 0.0f,
                                                          uint speed    = 0,
                                                          uint luck     = 0,
                                                          uint defence  = 0)
 {
     builder.StartObject(6);
     MonsterDataV2.AddDefence(builder, defence);
     MonsterDataV2.AddLuck(builder, luck);
     MonsterDataV2.AddSpeed(builder, speed);
     MonsterDataV2.AddHitRate(builder, hitRate);
     MonsterDataV2.AddHp(builder, hp);
     MonsterDataV2.AddName(builder, nameOffset);
     return(MonsterDataV2.EndMonsterDataV2(builder));
 }
Ejemplo n.º 2
0
 public static MonsterDataV2 GetRootAsMonsterDataV2(ByteBuffer _bb, MonsterDataV2 obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }