omp_gdk/scripting/checkpoints/
mod.rs1use crate::types::vector::Vector3;
2
3pub mod events;
4pub mod functions;
5
6pub use functions::load_functions;
7
8#[repr(C)]
10#[derive(PartialEq, Clone, Copy, Debug)]
11pub enum RaceCheckpointType {
12    Normal = 0,
14    Finish,
16    Nothing,
18    AirNormal,
20    AirFinish,
22    AirOne,
24    AirTwo,
26    AirThree,
28    AirFour,
30    None,
32}
33
34pub struct PlayerRaceCheckPointData {
36    pub center_pos: Vector3,
38    pub next_pos: Vector3,
40    pub radius: f32,
42}
43
44impl PlayerRaceCheckPointData {
45    pub fn new(center_pos: Vector3, next_pos: Vector3, radius: f32) -> Self {
46        Self {
47            center_pos,
48            next_pos,
49            radius,
50        }
51    }
52}
53
54#[derive(PartialEq, Clone, Copy, Debug)]
56pub struct PlayerCheckPointData {
57    pub center_pos: Vector3,
59    pub radius: f32,
61}
62
63impl PlayerCheckPointData {
64    pub fn new(center_pos: Vector3, radius: f32) -> Self {
65        Self { center_pos, radius }
66    }
67}