public static Offset <ConditionTask> CreateConditionTask(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 tasksOffset = default(VectorOffset), VectorOffset monster_poolOffset = default(VectorOffset), VectorOffset battle_passOffset = default(VectorOffset), VectorOffset limited_time_giftOffset = default(VectorOffset)) { builder.StartObject(11); ConditionTask.AddLimitedTimeGift(builder, limited_time_giftOffset); ConditionTask.AddBattlePass(builder, battle_passOffset); ConditionTask.AddMonsterPool(builder, monster_poolOffset); ConditionTask.AddTasks(builder, tasksOffset); ConditionTask.AddOptions(builder, optionsOffset); ConditionTask.AddUserConditions(builder, user_conditionsOffset); ConditionTask.AddDateConditions(builder, date_conditionsOffset); ConditionTask.AddPriority(builder, priority); ConditionTask.AddName(builder, nameOffset); ConditionTask.Add_id(builder, _idOffset); ConditionTask.AddEnabled(builder, enabled); return(ConditionTask.EndConditionTask(builder)); }
public static ConditionTask GetRootAsConditionTask(ByteBuffer _bb, ConditionTask obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public ConditionTask GetArray(ConditionTask obj, int j) { int o = __offset(4); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null); }