~starkingdoms/starkingdoms

ref: 34c0453addc106738f08f9b5f59d38c0287a115e starkingdoms/protocol/src/pbuf/module.proto -rw-r--r-- 529 bytes
34c0453a — ghostlyzsh so heres module attachment and movement, but its a little broken and also squishy joints and also no tree on the client 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;
}