~starkingdoms/starkingdoms

ref: dc9acc1b0d9b10e2a090dde503ab17a9af5bb986 starkingdoms/protocol/src/pbuf/module.proto -rw-r--r-- 529 bytes
dc9acc1b — ghostlyzsh small ansible change 2 years ago
                                                                                
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
syntax = "proto3";
package protocol.module;

message Module {
    ModuleType module_type = 1;
    double rotation = 2;
    double x = 3;
    double y = 4;
    uint32 id = 5;
    uint32 flags = 6;
}
message AttachedModule {
    ModuleType module_type = 1;
    double rotation = 2;
    double x = 3;
    double y = 4;
    uint32 id = 5;
    repeated Attachment children = 6;
}
message Attachment {
    uint32 id = 1;
    uint32 slot = 2;
}

enum ModuleType {
    UNKNOWN = 0;
    Cargo = 1;
    LandingThruster = 2;
    Hub = 3;
}