示例#1
0
 public static Offset <BattlePass> CreateBattlePass(FlatBufferBuilder builder,
                                                    StringOffset idOffset  = default(StringOffset),
                                                    StringOffset rt1Offset = default(StringOffset),
                                                    StringOffset ri1Offset = default(StringOffset),
                                                    int rn1 = 0,
                                                    StringOffset rt2Offset = default(StringOffset),
                                                    StringOffset ri2Offset = default(StringOffset),
                                                    int rn2 = 0,
                                                    StringOffset rt3Offset = default(StringOffset),
                                                    StringOffset ri3Offset = default(StringOffset),
                                                    int rn3 = 0,
                                                    StringOffset rt4Offset = default(StringOffset),
                                                    StringOffset ri4Offset = default(StringOffset),
                                                    int rn4 = 0)
 {
     builder.StartObject(13);
     BattlePass.AddRn4(builder, rn4);
     BattlePass.AddRi4(builder, ri4Offset);
     BattlePass.AddRt4(builder, rt4Offset);
     BattlePass.AddRn3(builder, rn3);
     BattlePass.AddRi3(builder, ri3Offset);
     BattlePass.AddRt3(builder, rt3Offset);
     BattlePass.AddRn2(builder, rn2);
     BattlePass.AddRi2(builder, ri2Offset);
     BattlePass.AddRt2(builder, rt2Offset);
     BattlePass.AddRn1(builder, rn1);
     BattlePass.AddRi1(builder, ri1Offset);
     BattlePass.AddRt1(builder, rt1Offset);
     BattlePass.AddId(builder, idOffset);
     return(BattlePass.EndBattlePass(builder));
 }
示例#2
0
 public static BattlePass GetRootAsBattlePass(ByteBuffer _bb, BattlePass obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
示例#3
0
 public BattlePass GetBattlePass(BattlePass obj, int j)
 {
     int o = __offset(22); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null);
 }