1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use super::*;

impl Default for ArrayKind {
    fn default() -> Self {
        Self::Vector3
    }
}
impl Deref for ArrayDescription {
    type Target = ArrayKind;

    fn deref(&self) -> &Self::Target {
        &self.kind
    }
}

impl ArrayKind {
    pub fn as_csharp_type(&self) -> &'static str {
        match self {
            ArrayKind::Vector2 => "Vector2",
            ArrayKind::Vector3 => "Vector3",
            ArrayKind::Vector4 => "Vector4",
            ArrayKind::Color4 => "Color4",
            ArrayKind::Quaternion4 => "Quaternion4",
        }
    }
    // pub fn as_csharp_reader(&self) -> &'static str {
    //     "ReadSingle"
    // }
}