-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheffect-particle-element-basic.ts
83 lines (66 loc) · 2.08 KB
/
effect-particle-element-basic.ts
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
// automatically generated by the FlatBuffers compiler, do not modify
import * as flatbuffers from 'flatbuffers';
export class EffectParticleElementBasic {
bb: flatbuffers.ByteBuffer|null = null;
bb_pos = 0;
__init(i:number, bb:flatbuffers.ByteBuffer):EffectParticleElementBasic {
this.bb_pos = i;
this.bb = bb;
return this;
}
ssEffectFunctionType():number {
return this.bb!.readInt32(this.bb_pos);
}
priority():number {
return this.bb!.readInt32(this.bb_pos + 4);
}
maximumParticle():number {
return this.bb!.readInt32(this.bb_pos + 8);
}
attimeCreate():number {
return this.bb!.readInt32(this.bb_pos + 12);
}
interval():number {
return this.bb!.readInt32(this.bb_pos + 16);
}
lifetime():number {
return this.bb!.readInt32(this.bb_pos + 20);
}
speedMinValue():number {
return this.bb!.readFloat32(this.bb_pos + 24);
}
speedMaxValue():number {
return this.bb!.readFloat32(this.bb_pos + 28);
}
lifespanMinValue():number {
return this.bb!.readInt32(this.bb_pos + 32);
}
lifespanMaxValue():number {
return this.bb!.readInt32(this.bb_pos + 36);
}
angle():number {
return this.bb!.readFloat32(this.bb_pos + 40);
}
angleVariance():number {
return this.bb!.readFloat32(this.bb_pos + 44);
}
static sizeOf():number {
return 48;
}
static createEffectParticleElementBasic(builder:flatbuffers.Builder, SsEffectFunctionType: number, priority: number, maximumParticle: number, attimeCreate: number, interval: number, lifetime: number, speedMinValue: number, speedMaxValue: number, lifespanMinValue: number, lifespanMaxValue: number, angle: number, angleVariance: number):flatbuffers.Offset {
builder.prep(4, 48);
builder.writeFloat32(angleVariance);
builder.writeFloat32(angle);
builder.writeInt32(lifespanMaxValue);
builder.writeInt32(lifespanMinValue);
builder.writeFloat32(speedMaxValue);
builder.writeFloat32(speedMinValue);
builder.writeInt32(lifetime);
builder.writeInt32(interval);
builder.writeInt32(attimeCreate);
builder.writeInt32(maximumParticle);
builder.writeInt32(priority);
builder.writeInt32(SsEffectFunctionType);
return builder.offset();
}
}