Example #1
0
 public static Offset <ItemTable> CreateItemTable(FlatBufferBuilder builder,
                                                  int Id = 0,
                                                  StringOffset NameOffset         = default(StringOffset),
                                                  VectorOffset RewardReadmeOffset = default(VectorOffset),
                                                  float Hp                  = 0.0f,
                                                  int Cost                  = 0,
                                                  int Level                 = 0,
                                                  int CostMoney             = 0,
                                                  VectorOffset ItemIDOffset = default(VectorOffset))
 {
     builder.StartObject(8);
     ItemTable.AddItemID(builder, ItemIDOffset);
     ItemTable.AddCostMoney(builder, CostMoney);
     ItemTable.AddLevel(builder, Level);
     ItemTable.AddCost(builder, Cost);
     ItemTable.AddHp(builder, Hp);
     ItemTable.AddRewardReadme(builder, RewardReadmeOffset);
     ItemTable.AddName(builder, NameOffset);
     ItemTable.AddId(builder, Id);
     return(ItemTable.EndItemTable(builder));
 }
Example #2
0
 public static ItemTable GetRootAsItemTable(ByteBuffer _bb, ItemTable obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }