예제 #1
0
 public static Offset <MonsterDataV1> CreateMonsterDataV1(FlatBufferBuilder builder,
                                                          StringOffset nameOffset = default(StringOffset),
                                                          uint hp       = 0,
                                                          float hitRate = 0.0f,
                                                          uint speed    = 0,
                                                          uint luck     = 0)
 {
     builder.StartObject(5);
     MonsterDataV1.AddLuck(builder, luck);
     MonsterDataV1.AddSpeed(builder, speed);
     MonsterDataV1.AddHitRate(builder, hitRate);
     MonsterDataV1.AddHp(builder, hp);
     MonsterDataV1.AddName(builder, nameOffset);
     return(MonsterDataV1.EndMonsterDataV1(builder));
 }
예제 #2
0
 public static MonsterDataV1 GetRootAsMonsterDataV1(ByteBuffer _bb, MonsterDataV1 obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }