|
| KeyframeCollection (int arrayCount, int numFrames, params float[] defaultValues) |
|
KeyframeEntry | SetFrameValue (int arrayIndex, int frameIndex, float value, bool parsing=false) |
|
KeyframeEntry | GetKeyframe (int arrayIndex, int index) |
|
float | GetFrameValue (int arrayIndex, float index, bool returnOutValue=false) |
|
void | Insert (int index, params int[] arrays) |
|
void | Delete (int index, params int[] arrays) |
|
int | Clean () |
|
bool | Equals (KeyframeCollection obj) |
|
IEnumerator< KeyframeArray > | GetEnumerator () |
|
◆ KeyframeCollection()
BrawlLib.Wii.Animations.KeyframeCollection.KeyframeCollection |
( |
int |
arrayCount, |
|
|
int |
numFrames, |
|
|
params float[] |
defaultValues |
|
) |
| |
|
inline |
53 {
54 _frameLimit = numFrames;
56 for (int i = 0; i < arrayCount; i++)
57 {
58 _keyArrays[i] =
new KeyframeArray(numFrames, i < defaultValues.Length ? defaultValues[i] : 0);
59 }
60 }
KeyframeArray[] _keyArrays
Definition: KeyframeCollection.cs:18
◆ Clean()
int BrawlLib.Wii.Animations.KeyframeCollection.Clean |
( |
| ) |
|
|
inline |
148 {
149 int removed = 0;
151 {
152 removed += arr.Clean();
153 }
154
155 return removed;
156 }
◆ Delete()
void BrawlLib.Wii.Animations.KeyframeCollection.Delete |
( |
int |
index, |
|
|
params int[] |
arrays |
|
) |
| |
|
inline |
130 {
131 KeyframeEntry entry = null, root;
133 {
135 for (entry = root._prev; entry != root && entry._index >= index; entry = entry._prev)
136 {
137 if (entry._index == index || --entry._index < 0)
138 {
142 }
143 }
144 }
145 }
float this[int index, params int[] arrays
Definition: KeyframeCollection.cs:63
void Remove()
Definition: KeyframeCollection.cs:253
KeyframeEntry _prev
Definition: KeyframeCollection.cs:195
KeyframeEntry _next
Definition: KeyframeCollection.cs:195
◆ Equals()
159 {
160 if (!(obj is KeyframeCollection k))
161 {
162 return false;
163 }
164
166 return false;
167
169 {
171 {
172 return false;
173 }
174 }
175
176 return true;
177 }
bool Equals(KeyframeCollection obj)
Definition: KeyframeCollection.cs:158
int ArrayCount
Definition: KeyframeCollection.cs:179
◆ GetEnumerator()
IEnumerator< KeyframeArray > BrawlLib.Wii.Animations.KeyframeCollection.GetEnumerator |
( |
| ) |
|
|
inline |
182 {
184 }
IEnumerator< KeyframeArray > GetEnumerator()
Definition: KeyframeCollection.cs:181
◆ GetFrameValue()
float BrawlLib.Wii.Animations.KeyframeCollection.GetFrameValue |
( |
int |
arrayIndex, |
|
|
float |
index, |
|
|
bool |
returnOutValue = false |
|
) |
| |
|
inline |
85 {
87 }
float GetFrameValue(float index, bool returnOutValue=false)
Definition: KeyframeCollection.cs:491
◆ GetKeyframe()
KeyframeEntry BrawlLib.Wii.Animations.KeyframeCollection.GetKeyframe |
( |
int |
arrayIndex, |
|
|
int |
index |
|
) |
| |
|
inline |
80 {
82 }
KeyframeEntry GetKeyframe(int index)
Definition: KeyframeCollection.cs:475
◆ Insert()
void BrawlLib.Wii.Animations.KeyframeCollection.Insert |
( |
int |
index, |
|
|
params int[] |
arrays |
|
) |
| |
|
inline |
112 {
113 KeyframeEntry entry = null, root;
115 {
117 for (entry = root._prev; entry != root && entry._index >= index; entry = entry._prev)
118 {
119 if (++entry._index >= _frameLimit)
120 {
124 }
125 }
126 }
127 }
◆ SetFrameValue()
KeyframeEntry BrawlLib.Wii.Animations.KeyframeCollection.SetFrameValue |
( |
int |
arrayIndex, |
|
|
int |
frameIndex, |
|
|
float |
value, |
|
|
bool |
parsing = false |
|
) |
| |
|
inline |
75 {
77 }
KeyframeEntry SetFrameValue(int index, float value, bool parsing=false)
Definition: KeyframeCollection.cs:556
◆ _keyArrays
KeyframeArray [] BrawlLib.Wii.Animations.KeyframeCollection._keyArrays |
◆ ArrayCount
int BrawlLib.Wii.Animations.KeyframeCollection.ArrayCount |
|
get |
◆ arrays
float this[int index, params int[] BrawlLib.Wii.Animations.KeyframeCollection.arrays |
|
getset |
63 {
65 set
66 {
68 {
70 }
71 }
72 }
float GetFrameValue(int arrayIndex, float index, bool returnOutValue=false)
Definition: KeyframeCollection.cs:84
◆ FrameLimit
int BrawlLib.Wii.Animations.KeyframeCollection.FrameLimit |
|
getset |
40 {
41 get => _frameLimit;
42 set
43 {
44 _frameLimit = value;
46 {
47 r.FrameLimit = _frameLimit;
48 }
49 }
50 }
◆ Loop
bool BrawlLib.Wii.Animations.KeyframeCollection.Loop |
|
getset |
25 {
26 get => _looped;
27 set
28 {
29 _looped = value;
31 {
32 a.Loop = _looped;
33 }
34 }
35 }
◆ this[int index]
KeyframeArray BrawlLib.Wii.Animations.KeyframeCollection.this[int index] |
|
get |
The documentation for this class was generated from the following file:
- BrawlLib/Wii/Animations/KeyframeCollection.cs