#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EGameRecordingType {
    Unknown = 0,
    NotRecording = 1,
    ManualRecording = 2,
    BackgroundRecording = 3,
    Clip = 4,
}

impl EGameRecordingType {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::Unknown as i32 => Some(Self::Unknown),
            x if x == Self::NotRecording as i32 => Some(Self::NotRecording),
            x if x == Self::ManualRecording as i32 => Some(Self::ManualRecording),
            x if x == Self::BackgroundRecording as i32 => Some(Self::BackgroundRecording),
            x if x == Self::Clip as i32 => Some(Self::Clip),
            _ => None,
        }
    }
}
