coastline 0.0.4
Loading...
Searching...
No Matches
notesafety.h
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <cstddef>
5#include <cstdint>
6#include <span>
7
8namespace coastline {
9
12
19bool ValidSavedRaceTime(float seconds);
20
29
39
50 std::size_t tracks,
51 std::size_t cars,
52 const NoteEquipmentCounts &counts);
53
54} // namespace coastline
Definition assetimport.h:11
bool ValidSavedRaceTime(float seconds)
Check that a saved race time is finite, non-negative, and safe to display in signed hundredths.
bool 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.
bool ValidOptionsNote(std::span< const std::uint8_t > note, const NoteEquipmentCounts &counts)
Validate native options-note length, volume levels, units, and equipment indices.
std::array< std::size_t, 5 > NoteEquipmentCounts
Counts of handling, transmission, tyre, suspension, and controller-layout choices,...
Definition notesafety.h:11
bool ValidSeasonNoteValues(std::span< const std::uint8_t > note, const NoteEquipmentCounts &counts)
Validate native season-note length, times, placements, and equipment indices.