コード例 #1
0
ファイル: MonsterStat.cs プロジェクト: yuchanahn/Server
 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));
 }
コード例 #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));
 }