-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatlas.proto
51 lines (46 loc) · 851 Bytes
/
atlas.proto
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
syntax = "proto3";
message Canvas {
int32 Width = 1;
int32 Height = 2;
}
message Mesh {
int32 texNo = 1;
float offsetX = 2;
float offsetY = 3;
float srcOffsetX = 4;
float srcOffsetY = 5;
float texU1 = 6;
float texV1 = 7;
float texU2 = 8;
float texV2 = 9;
float viewX = 10;
float viewY = 11;
float width = 12;
float height = 13;
}
message Attribute {
int32 id = 1;
int32 x = 2;
int32 y = 3;
int32 width = 4;
int32 height = 5;
int64 color = 6;
}
message Block {
string filename = 1;
string filenameOld = 2;
int32 id = 3;
float anchorX = 4;
float anchorY = 5;
float width = 6;
float height = 7;
float offsetX = 8;
float offsetY = 9;
int32 priority = 10;
repeated Mesh Mesh = 11;
repeated Attribute Attribute = 12;
}
message Atlas {
Canvas Canvas = 1;
repeated Block Block = 2;
}