coastline 0.0.4
Loading...
Searching...
No Matches
notesafety.h File Reference
#include <array>
#include <cstddef>
#include <cstdint>
#include <span>
Include dependency graph for notesafety.h:

Go to the source code of this file.

Namespaces

namespace  coastline

Typedefs

using coastline::NoteEquipmentCounts = std::array<std::size_t, 5>
 Counts of handling, transmission, tyre, suspension, and controller-layout choices, in order.

Functions

bool coastline::ValidSavedRaceTime (float seconds)
 Check that a saved race time is finite, non-negative, and safe to display in signed hundredths.
bool coastline::ValidOptionsNote (std::span< const std::uint8_t > note, const NoteEquipmentCounts &counts)
 Validate native options-note length, volume levels, units, and equipment indices.
bool coastline::ValidSeasonNoteValues (std::span< const std::uint8_t > note, const NoteEquipmentCounts &counts)
 Validate native season-note length, times, placements, and equipment indices.
bool coastline::ValidGhostRecording (std::span< const std::uint8_t > recording, std::size_t tracks, std::size_t cars, const NoteEquipmentCounts &counts)
 Validate an expanded console ghost's length, track, car, and equipment header.