public static Offset <GoldInfo> CreateGoldInfo(FlatBufferBuilder builder, int id = 0, int price_hc = 0, int base_gold = 0, int level_inc_gold = 0, int rate_2 = 0, int rate_3 = 0, int rate_10 = 0) { builder.StartObject(7); GoldInfo.AddRate10(builder, rate_10); GoldInfo.AddRate3(builder, rate_3); GoldInfo.AddRate2(builder, rate_2); GoldInfo.AddLevelIncGold(builder, level_inc_gold); GoldInfo.AddBaseGold(builder, base_gold); GoldInfo.AddPriceHc(builder, price_hc); GoldInfo.AddId(builder, id); return(GoldInfo.EndGoldInfo(builder)); }
public static GoldInfo GetRootAsGoldInfo(ByteBuffer _bb, GoldInfo obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public GoldInfo GetGold(GoldInfo obj, int j) { int o = __offset(20); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null); }