Exemplo n.º 1
0
 public static Offset <FlatbuffersResource.EncounterNest8> CreateEncounterNest8(FlatBufferBuilder builder,
                                                                                uint EntryIndex    = 0,
                                                                                uint Species       = 0,
                                                                                uint AltForm       = 0,
                                                                                ulong LevelTableID = 0,
                                                                                sbyte Ability      = 0,
                                                                                bool IsGigantamax  = false,
                                                                                ulong DropTableID  = 0,
                                                                                ulong BonusTableID = 0,
                                                                                VectorOffset ProbabilitiesOffset = default(VectorOffset),
                                                                                sbyte Gender      = 0,
                                                                                sbyte FlawlessIVs = 0)
 {
     builder.StartTable(11);
     EncounterNest8.AddBonusTableID(builder, BonusTableID);
     EncounterNest8.AddDropTableID(builder, DropTableID);
     EncounterNest8.AddLevelTableID(builder, LevelTableID);
     EncounterNest8.AddProbabilities(builder, ProbabilitiesOffset);
     EncounterNest8.AddAltForm(builder, AltForm);
     EncounterNest8.AddSpecies(builder, Species);
     EncounterNest8.AddEntryIndex(builder, EntryIndex);
     EncounterNest8.AddFlawlessIVs(builder, FlawlessIVs);
     EncounterNest8.AddGender(builder, Gender);
     EncounterNest8.AddIsGigantamax(builder, IsGigantamax);
     EncounterNest8.AddAbility(builder, Ability);
     return(EncounterNest8.EndEncounterNest8(builder));
 }
Exemplo n.º 2
0
 public static EncounterNest8 GetRootAsEncounterNest8(ByteBuffer _bb, EncounterNest8 obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }