dfhack-remote-node 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +16 -0
- package/README.md +126 -0
- package/build/proto.json +4390 -0
- package/dist/index.d.ts +228 -0
- package/dist/index.js +4762 -0
- package/dist/index.js.map +1 -0
- package/package.json +66 -0
- package/proto/AdventureControl.proto +109 -0
- package/proto/Basic.proto +207 -0
- package/proto/BasicApi.proto +109 -0
- package/proto/CoreProtocol.proto +92 -0
- package/proto/DwarfControl.proto +97 -0
- package/proto/ItemdefInstrument.proto +108 -0
- package/proto/RemoteFortressReader.proto +1131 -0
- package/proto/ui_sidebar_mode.proto +65 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
syntax = "proto2";
|
|
2
|
+
|
|
3
|
+
//Attempts to provide a complete framework for reading everything from a fortress needed for vizualization
|
|
4
|
+
package ItemdefInstrument;
|
|
5
|
+
|
|
6
|
+
option optimize_for = LITE_RUNTIME;
|
|
7
|
+
|
|
8
|
+
// Plugin: RemoteFortressReader
|
|
9
|
+
|
|
10
|
+
message InstrumentFlags
|
|
11
|
+
{
|
|
12
|
+
optional bool indefinite_pitch = 1;
|
|
13
|
+
optional bool placed_as_building = 2;
|
|
14
|
+
optional bool metal_mat = 3;
|
|
15
|
+
optional bool stone_mat = 4;
|
|
16
|
+
optional bool wood_mat = 5;
|
|
17
|
+
optional bool glass_mat = 6;
|
|
18
|
+
optional bool ceramic_mat = 7;
|
|
19
|
+
optional bool shell_mat = 8;
|
|
20
|
+
optional bool bone_mat = 9;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
enum PitchChoiceType
|
|
24
|
+
{
|
|
25
|
+
MEMBRANE_POSITION = 0;
|
|
26
|
+
SUBPART_CHOICE = 1;
|
|
27
|
+
KEYBOARD = 2;
|
|
28
|
+
STOPPING_FRET = 3;
|
|
29
|
+
STOPPING_AGAINST_BODY = 4;
|
|
30
|
+
STOPPING_HOLE = 5;
|
|
31
|
+
STOPPING_HOLE_KEY = 6;
|
|
32
|
+
SLIDE = 7;
|
|
33
|
+
HARMONIC_SERIES = 8;
|
|
34
|
+
VALVE_ROUTES_AIR = 9;
|
|
35
|
+
BP_IN_BELL = 10;
|
|
36
|
+
FOOT_PEDALS = 11;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
enum SoundProductionType
|
|
40
|
+
{
|
|
41
|
+
PLUCKED_BY_BP = 0;
|
|
42
|
+
PLUCKED = 1;
|
|
43
|
+
BOWED = 2;
|
|
44
|
+
STRUCK_BY_BP = 3;
|
|
45
|
+
STRUCK = 4;
|
|
46
|
+
VIBRATE_BP_AGAINST_OPENING = 5;
|
|
47
|
+
BLOW_AGAINST_FIPPLE = 6;
|
|
48
|
+
BLOW_OVER_OPENING_SIDE = 7;
|
|
49
|
+
BLOW_OVER_OPENING_END = 8;
|
|
50
|
+
BLOW_OVER_SINGLE_REED = 9;
|
|
51
|
+
BLOW_OVER_DOUBLE_REED = 10;
|
|
52
|
+
BLOW_OVER_FREE_REED = 11;
|
|
53
|
+
STRUCK_TOGETHER = 12;
|
|
54
|
+
SHAKEN = 13;
|
|
55
|
+
SCRAPED = 14;
|
|
56
|
+
FRICTION = 15;
|
|
57
|
+
RESONATOR = 16;
|
|
58
|
+
BAG_OVER_REED = 17;
|
|
59
|
+
AIR_OVER_REED = 18;
|
|
60
|
+
AIR_OVER_FREE_REED = 19;
|
|
61
|
+
AIR_AGAINST_FIPPLE = 20;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
enum TuningType
|
|
65
|
+
{
|
|
66
|
+
PEGS = 0;
|
|
67
|
+
ADJUSTABLE_BRIDGES = 1;
|
|
68
|
+
CROOKS = 2;
|
|
69
|
+
TIGHTENING = 3;
|
|
70
|
+
LEVERS = 4;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message InstrumentPiece
|
|
74
|
+
{
|
|
75
|
+
optional string type = 1;
|
|
76
|
+
optional string id = 2;
|
|
77
|
+
optional string name = 3;
|
|
78
|
+
optional string name_plural = 4;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message InstrumentRegister
|
|
82
|
+
{
|
|
83
|
+
optional int32 pitch_range_min = 1;
|
|
84
|
+
optional int32 pitch_range_max = 2;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message InstrumentDef
|
|
88
|
+
{
|
|
89
|
+
optional InstrumentFlags flags = 1;
|
|
90
|
+
optional int32 size = 2;
|
|
91
|
+
optional int32 value = 3;
|
|
92
|
+
optional int32 material_size = 4;
|
|
93
|
+
repeated InstrumentPiece pieces = 5;
|
|
94
|
+
optional int32 pitch_range_min = 6;
|
|
95
|
+
optional int32 pitch_range_max = 7;
|
|
96
|
+
optional int32 volume_mb_min = 8;
|
|
97
|
+
optional int32 volume_mb_max = 9;
|
|
98
|
+
repeated SoundProductionType sound_production = 10;
|
|
99
|
+
repeated string sound_production_parm1 = 11;
|
|
100
|
+
repeated string sound_production_parm2 = 12;
|
|
101
|
+
repeated PitchChoiceType pitch_choice = 13;
|
|
102
|
+
repeated string pitch_choice_parm1 = 14;
|
|
103
|
+
repeated string pitch_choice_parm2 = 15;
|
|
104
|
+
repeated TuningType tuning = 16;
|
|
105
|
+
repeated string tuning_parm = 17;
|
|
106
|
+
repeated InstrumentRegister registers = 18;
|
|
107
|
+
optional string description = 19;
|
|
108
|
+
}
|