Beispiel #1
0
 public static Offset <ActionPowerInfo> CreateActionPowerInfo(FlatBufferBuilder builder,
                                                              int id                = 0,
                                                              int price_hc          = 0,
                                                              int base_action_power = 0,
                                                              int rate_2            = 0,
                                                              int rate_3            = 0,
                                                              int rate_10           = 0)
 {
     builder.StartObject(6);
     ActionPowerInfo.AddRate10(builder, rate_10);
     ActionPowerInfo.AddRate3(builder, rate_3);
     ActionPowerInfo.AddRate2(builder, rate_2);
     ActionPowerInfo.AddBaseActionPower(builder, base_action_power);
     ActionPowerInfo.AddPriceHc(builder, price_hc);
     ActionPowerInfo.AddId(builder, id);
     return(ActionPowerInfo.EndActionPowerInfo(builder));
 }
Beispiel #2
0
 public ActionPowerInfo GetActionPower(ActionPowerInfo obj, int j)
 {
     int o = __offset(22); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null);
 }
Beispiel #3
0
 public static ActionPowerInfo GetRootAsActionPowerInfo(ByteBuffer _bb, ActionPowerInfo obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }