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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Geometry {
    #[prost(float, repeated, tag="1")]
    pub positions: ::prost::alloc::vec::Vec<f32>,
    #[prost(float, repeated, tag="2")]
    pub uvs: ::prost::alloc::vec::Vec<f32>,
    #[prost(int32, repeated, tag="4")]
    pub indices: ::prost::alloc::vec::Vec<i32>,
    #[prost(int32, repeated, tag="5")]
    pub lights: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Mesh {
    #[prost(int32, tag="1")]
    pub level: i32,
    #[prost(message, optional, tag="2")]
    pub opaque: ::core::option::Option<Geometry>,
    #[prost(message, optional, tag="3")]
    pub transparent: ::core::option::Option<Geometry>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Chunk {
    #[prost(int32, tag="1")]
    pub x: i32,
    #[prost(int32, tag="2")]
    pub z: i32,
    #[prost(string, tag="3")]
    pub id: ::prost::alloc::string::String,
    #[prost(message, repeated, tag="4")]
    pub meshes: ::prost::alloc::vec::Vec<Mesh>,
    #[prost(uint32, repeated, tag="5")]
    pub voxels: ::prost::alloc::vec::Vec<u32>,
    #[prost(uint32, repeated, tag="6")]
    pub lights: ::prost::alloc::vec::Vec<u32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Vector3 {
    #[prost(float, tag="1")]
    pub x: f32,
    #[prost(float, tag="2")]
    pub y: f32,
    #[prost(float, tag="3")]
    pub z: f32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Peer {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub username: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub metadata: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Entity {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub r#type: ::prost::alloc::string::String,
    #[prost(string, tag="6")]
    pub metadata: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub payload: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Update {
    #[prost(int32, tag="1")]
    pub vx: i32,
    #[prost(int32, tag="2")]
    pub vy: i32,
    #[prost(int32, tag="3")]
    pub vz: i32,
    #[prost(uint32, tag="4")]
    pub voxel: u32,
    #[prost(uint32, tag="5")]
    pub light: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChatMessage {
    #[prost(string, tag="1")]
    pub r#type: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub sender: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub body: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Message {
    #[prost(enumeration="message::Type", tag="1")]
    pub r#type: i32,
    #[prost(string, tag="2")]
    pub json: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub text: ::prost::alloc::string::String,
    #[prost(message, optional, tag="4")]
    pub chat: ::core::option::Option<ChatMessage>,
    #[prost(message, repeated, tag="5")]
    pub peers: ::prost::alloc::vec::Vec<Peer>,
    #[prost(message, repeated, tag="6")]
    pub entities: ::prost::alloc::vec::Vec<Entity>,
    #[prost(message, repeated, tag="7")]
    pub chunks: ::prost::alloc::vec::Vec<Chunk>,
    #[prost(message, repeated, tag="8")]
    pub events: ::prost::alloc::vec::Vec<Event>,
    #[prost(message, repeated, tag="9")]
    pub updates: ::prost::alloc::vec::Vec<Update>,
}
/// Nested message and enum types in `Message`.
pub mod message {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Type {
        Init = 0,
        Join = 1,
        Leave = 2,
        Error = 3,
        Peer = 4,
        Entity = 5,
        Load = 6,
        Unload = 7,
        Update = 8,
        Method = 9,
        Chat = 10,
        Transport = 11,
        Event = 12,
    }
}