public static Offset <FObjective> CreateFObjective(FlatBufferBuilder builder, StringOffset objective_nameOffset = default(StringOffset), int max_episode_length = 0, float solved_threshold = 0.0f) { builder.StartObject(3); FObjective.AddSolvedThreshold(builder, solved_threshold); FObjective.AddMaxEpisodeLength(builder, max_episode_length); FObjective.AddObjectiveName(builder, objective_nameOffset); return(FObjective.EndFObjective(builder)); }
public static FObjective GetRootAsFObjective(ByteBuffer _bb, FObjective obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }