-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheffects.proto
92 lines (78 loc) · 2.15 KB
/
effects.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
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
syntax = "proto3";
package rv.data;
import "color.proto";
import "uuid.proto";
message Effect {
rv.data.UUID uuid = 1;
bool enabled = 2;
string name = 3;
string render_id = 4;
string behavior_description = 5;
string category = 6;
repeated rv.data.Effect.EffectVariable variables = 7;
message EffectVariable {
string name = 1;
string description = 2;
oneof Type {
rv.data.Effect.EffectVariable.EffectInt int = 3;
rv.data.Effect.EffectVariable.EffectFloat float = 4;
rv.data.Effect.EffectVariable.EffectColor color = 5;
rv.data.Effect.EffectVariable.EffectDirection direction = 6;
rv.data.Effect.EffectVariable.EffectDouble double = 7;
}
message EffectInt {
int32 value = 1;
int32 default_value = 2;
int32 min = 3;
int32 max = 4;
}
message EffectFloat {
float value = 1;
float default_value = 2;
float min = 3;
float max = 4;
}
message EffectDouble {
double value = 1;
double default_value = 2;
double min = 3;
double max = 4;
}
message EffectColor {
rv.data.Color color = 1;
rv.data.Color default_color = 2;
}
message EffectDirection {
enum EffectDirection {
EFFECT_DIRECTION_NONE = 0;
EFFECT_DIRECTION_TOP_LEFT = 1;
EFFECT_DIRECTION_TOP = 2;
EFFECT_DIRECTION_TOP_RIGHT = 4;
EFFECT_DIRECTION_LEFT = 8;
EFFECT_DIRECTION_CENTER = 16;
EFFECT_DIRECTION_RIGHT = 32;
EFFECT_DIRECTION_BOTTOM_LEFT = 64;
EFFECT_DIRECTION_BOTTOM = 128;
EFFECT_DIRECTION_BOTTOM_RIGHT = 256;
}
EffectDirection direction = 1;
EffectDirection default_direction = 2;
uint32 available_directions = 3;
}
}
message Preset {
rv.data.UUID uuid = 1;
string name = 2;
repeated rv.data.Effect effects = 3;
}
}
message Transition {
double duration = 1;
rv.data.UUID favorite_uuid = 2;
rv.data.Effect effect = 3;
message Preset {
rv.data.UUID uuid = 1;
string name = 2;
rv.data.Transition transition = 3;
}
}