static Offset <FObjective> serialise_objective(FlatBufferBuilder b, EnvironmentDescription description) { var objective_name_offset = b.CreateString("Default objective"); FObjective.StartFObjective(b); FObjective.AddMaxEpisodeLength(b, description.MaxSteps); FObjective.AddSolvedThreshold(b, description.SolvedThreshold); FObjective.AddObjectiveName(b, objective_name_offset); return(FObjective.EndFObjective(b)); }
public static FObjective GetRootAsFObjective(ByteBuffer _bb, FObjective obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }