Exemple #1
0
 public static Offset <ConditionNewGameConfig> CreateConditionNewGameConfig(FlatBufferBuilder builder,
                                                                            StringOffset _idOffset                      = default(StringOffset),
                                                                            StringOffset nameOffset                     = default(StringOffset),
                                                                            bool enabled                                = false,
                                                                            int priority                                = 0,
                                                                            VectorOffset date_conditionsOffset          = default(VectorOffset),
                                                                            VectorOffset user_conditionsOffset          = default(VectorOffset),
                                                                            Offset <GM.DataCache.Options> optionsOffset = default(Offset <GM.DataCache.Options>),
                                                                            VectorOffset GameConfigOffset               = default(VectorOffset))
 {
     builder.StartObject(8);
     ConditionNewGameConfig.AddGameConfig(builder, GameConfigOffset);
     ConditionNewGameConfig.AddOptions(builder, optionsOffset);
     ConditionNewGameConfig.AddUserConditions(builder, user_conditionsOffset);
     ConditionNewGameConfig.AddDateConditions(builder, date_conditionsOffset);
     ConditionNewGameConfig.AddPriority(builder, priority);
     ConditionNewGameConfig.AddName(builder, nameOffset);
     ConditionNewGameConfig.Add_id(builder, _idOffset);
     ConditionNewGameConfig.AddEnabled(builder, enabled);
     return(ConditionNewGameConfig.EndConditionNewGameConfig(builder));
 }
Exemple #2
0
 public ConditionNewGameConfig GetArray(ConditionNewGameConfig obj, int j)
 {
     int o = __offset(4); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null);
 }
Exemple #3
0
 public static ConditionNewGameConfig GetRootAsConditionNewGameConfig(ByteBuffer _bb, ConditionNewGameConfig obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }