BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
BrawlLib.Wii.Models.AnimationCode Struct Reference

Public Member Functions

bool GetIsFixed (int i)
 
void SetIsFixed (int i, bool p)
 
bool GetIsIsotropic (int i)
 
void SetIsIsotropic (int i, bool p)
 
bool GetExists (int i)
 
void SetExists (int i, bool p)
 
AnimDataFormat GetFormat (int index)
 
void SetFormat (int index, AnimDataFormat format)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator AnimationCode (uint data)
 
static implicit operator uint (AnimationCode code)
 

Public Attributes

Bin32 _data
 

Static Public Attributes

static AnimationCode Default = new AnimationCode {_data = 0x3FE07F}
 

Properties

bool AlwaysSet [get, set]
 
bool Identity [get, set]
 
bool IgnoreRotAndTrans [get, set]
 
bool IgnoreScale [get, set]
 
bool IsScaleIsotropic [get, set]
 
bool IsRotationIsotropic [get, set]
 
bool IsTranslationIsotropic [get, set]
 
bool UseModelScale [get, set]
 
bool UseModelRot [get, set]
 
bool UseModelTrans [get, set]
 
bool ScaleCompApply [get, set]
 
bool ScaleCompParent [get, set]
 
bool ClassicScaleOff [get, set]
 
bool IsScaleXFixed [get, set]
 
bool IsScaleYFixed [get, set]
 
bool IsScaleZFixed [get, set]
 
bool IsRotationXFixed [get, set]
 
bool IsRotationYFixed [get, set]
 
bool IsRotationZFixed [get, set]
 
bool IsTranslationXFixed [get, set]
 
bool IsTranslationYFixed [get, set]
 
bool IsTranslationZFixed [get, set]
 
bool HasScale [get, set]
 
bool HasRotation [get, set]
 
bool HasTranslation [get, set]
 
AnimDataFormat ScaleDataFormat [get, set]
 
AnimDataFormat RotationDataFormat [get, set]
 
AnimDataFormat TranslationDataFormat [get, set]
 

Member Function Documentation

◆ GetExists()

bool BrawlLib.Wii.Models.AnimationCode.GetExists ( int  i)
inline
281 {
282 return _data[22 + i];
283 }
Bin32 _data
Definition: AnimationCode.cs:23

◆ GetFormat()

AnimDataFormat BrawlLib.Wii.Models.AnimationCode.GetFormat ( int  index)
inline
291 {
292 switch (index)
293 {
294 case 0: return ScaleDataFormat;
295 case 1: return RotationDataFormat;
296 case 2: return TranslationDataFormat;
297 }
298
299 return AnimDataFormat.None;
300 }
AnimDataFormat
Definition: AnimationCode.cs:8
AnimDataFormat RotationDataFormat
Definition: AnimationCode.cs:212
AnimDataFormat TranslationDataFormat
Definition: AnimationCode.cs:218
AnimDataFormat ScaleDataFormat
Definition: AnimationCode.cs:206

◆ GetIsFixed()

bool BrawlLib.Wii.Models.AnimationCode.GetIsFixed ( int  i)
inline
261 {
262 return _data[13 + i];
263 }

◆ GetIsIsotropic()

bool BrawlLib.Wii.Models.AnimationCode.GetIsIsotropic ( int  i)
inline
271 {
272 return _data[4 + i];
273 }

◆ operator AnimationCode()

static implicit BrawlLib.Wii.Models.AnimationCode.operator AnimationCode ( uint  data)
inlinestatic
251 {
252 return new AnimationCode {_data = data};
253 }

◆ operator uint()

static implicit BrawlLib.Wii.Models.AnimationCode.operator uint ( AnimationCode  code)
inlinestatic
256 {
257 return code._data;
258 }

◆ SetExists()

void BrawlLib.Wii.Models.AnimationCode.SetExists ( int  i,
bool  p 
)
inline
286 {
287 _data[22 + i] = p;
288 }

◆ SetFormat()

void BrawlLib.Wii.Models.AnimationCode.SetFormat ( int  index,
AnimDataFormat  format 
)
inline
303 {
304 switch (index)
305 {
306 case 0:
307 ScaleDataFormat = format;
308 break;
309 case 1:
310 RotationDataFormat = format;
311 break;
312 case 2:
313 TranslationDataFormat = format;
314 break;
315 }
316 }

◆ SetIsFixed()

void BrawlLib.Wii.Models.AnimationCode.SetIsFixed ( int  i,
bool  p 
)
inline
266 {
267 _data[13 + i] = p;
268 }

◆ SetIsIsotropic()

void BrawlLib.Wii.Models.AnimationCode.SetIsIsotropic ( int  i,
bool  p 
)
inline
276 {
277 _data[4 + i] = p;
278 }

◆ ToString()

override string BrawlLib.Wii.Models.AnimationCode.ToString ( )
inline
319 {
320 //sbyte* buffer = stackalloc sbyte[39];
321
322 //uint data = _data;
323 //for (int i = 38; i >= 0; i--)
324 //{
325 // if (((i + 1) % 5) == 0)
326 // buffer[i] = 0x20;
327 // else
328 // {
329 // buffer[i] = (sbyte)(((data & 1) == 0) ? 0x30 : 0x31);
330 // data >>= 1;
331 // }
332 //}
333
334 //return new string(buffer, 0, 39);
335
336 return _data.ToString();
337
338 //return String.Format("S:{0}; R:{1}; T:{2}; UMS:{3} UMR:{4} UMT:{5}", ScaleDataFormat.ToString(), RotationDataFormat.ToString(), TranslationDataFormat.ToString(), UseModelScale, UseModelRot, UseModelTrans);
339 }
override string ToString()
Definition: BinaryHandlers.cs:28

Member Data Documentation

◆ _data

Bin32 BrawlLib.Wii.Models.AnimationCode._data

◆ Default

AnimationCode BrawlLib.Wii.Models.AnimationCode.Default = new AnimationCode {_data = 0x3FE07F}
static

Property Documentation

◆ AlwaysSet

bool BrawlLib.Wii.Models.AnimationCode.AlwaysSet
getset
56 {
57 get => _data[0];
58 set => _data[0] = value;
59 }

◆ ClassicScaleOff

bool BrawlLib.Wii.Models.AnimationCode.ClassicScaleOff
getset
128 {
129 get => _data[12];
130 set => _data[12] = value;
131 }

◆ HasRotation

bool BrawlLib.Wii.Models.AnimationCode.HasRotation
getset
194 {
195 get => _data[23];
196 set => _data[23] = value;
197 }

◆ HasScale

bool BrawlLib.Wii.Models.AnimationCode.HasScale
getset
188 {
189 get => _data[22];
190 set => _data[22] = value;
191 }

◆ HasTranslation

bool BrawlLib.Wii.Models.AnimationCode.HasTranslation
getset
200 {
201 get => _data[24];
202 set => _data[24] = value;
203 }

◆ Identity

bool BrawlLib.Wii.Models.AnimationCode.Identity
getset
62 {
63 get => _data[1];
64 set => _data[1] = value;
65 }

◆ IgnoreRotAndTrans

bool BrawlLib.Wii.Models.AnimationCode.IgnoreRotAndTrans
getset
68 {
69 get => _data[2];
70 set => _data[2] = value;
71 }

◆ IgnoreScale

bool BrawlLib.Wii.Models.AnimationCode.IgnoreScale
getset
74 {
75 get => _data[3];
76 set => _data[3] = value;
77 }

◆ IsRotationIsotropic

bool BrawlLib.Wii.Models.AnimationCode.IsRotationIsotropic
getset
86 {
87 get => _data[5];
88 set => _data[5] = value;
89 }

◆ IsRotationXFixed

bool BrawlLib.Wii.Models.AnimationCode.IsRotationXFixed
getset
152 {
153 get => _data[16];
154 set => _data[16] = value;
155 }

◆ IsRotationYFixed

bool BrawlLib.Wii.Models.AnimationCode.IsRotationYFixed
getset
158 {
159 get => _data[17];
160 set => _data[17] = value;
161 }

◆ IsRotationZFixed

bool BrawlLib.Wii.Models.AnimationCode.IsRotationZFixed
getset
164 {
165 get => _data[18];
166 set => _data[18] = value;
167 }

◆ IsScaleIsotropic

bool BrawlLib.Wii.Models.AnimationCode.IsScaleIsotropic
getset
80 {
81 get => _data[4];
82 set => _data[4] = value;
83 }

◆ IsScaleXFixed

bool BrawlLib.Wii.Models.AnimationCode.IsScaleXFixed
getset
134 {
135 get => _data[13];
136 set => _data[13] = value;
137 }

◆ IsScaleYFixed

bool BrawlLib.Wii.Models.AnimationCode.IsScaleYFixed
getset
140 {
141 get => _data[14];
142 set => _data[14] = value;
143 }

◆ IsScaleZFixed

bool BrawlLib.Wii.Models.AnimationCode.IsScaleZFixed
getset
146 {
147 get => _data[15];
148 set => _data[15] = value;
149 }

◆ IsTranslationIsotropic

bool BrawlLib.Wii.Models.AnimationCode.IsTranslationIsotropic
getset
92 {
93 get => _data[6];
94 set => _data[6] = value;
95 }

◆ IsTranslationXFixed

bool BrawlLib.Wii.Models.AnimationCode.IsTranslationXFixed
getset
170 {
171 get => _data[19];
172 set => _data[19] = value;
173 }

◆ IsTranslationYFixed

bool BrawlLib.Wii.Models.AnimationCode.IsTranslationYFixed
getset
176 {
177 get => _data[20];
178 set => _data[20] = value;
179 }

◆ IsTranslationZFixed

bool BrawlLib.Wii.Models.AnimationCode.IsTranslationZFixed
getset
182 {
183 get => _data[21];
184 set => _data[21] = value;
185 }

◆ RotationDataFormat

AnimDataFormat BrawlLib.Wii.Models.AnimationCode.RotationDataFormat
getset
212 {
213 get => (AnimDataFormat) _data[27, 3];
214 set => _data[27, 3] = (uint) value;
215 }

◆ ScaleCompApply

bool BrawlLib.Wii.Models.AnimationCode.ScaleCompApply
getset
116 {
117 get => _data[10];
118 set => _data[10] = value;
119 }

◆ ScaleCompParent

bool BrawlLib.Wii.Models.AnimationCode.ScaleCompParent
getset
122 {
123 get => _data[11];
124 set => _data[11] = value;
125 }

◆ ScaleDataFormat

AnimDataFormat BrawlLib.Wii.Models.AnimationCode.ScaleDataFormat
getset
206 {
207 get => (AnimDataFormat) _data[25, 2];
208 set => _data[25, 2] = (uint) value;
209 }

◆ TranslationDataFormat

AnimDataFormat BrawlLib.Wii.Models.AnimationCode.TranslationDataFormat
getset
218 {
219 get => (AnimDataFormat) _data[30, 2];
220 set => _data[30, 2] = (uint) value;
221 }

◆ UseModelRot

bool BrawlLib.Wii.Models.AnimationCode.UseModelRot
getset
104 {
105 get => _data[8];
106 set => _data[8] = value;
107 }

◆ UseModelScale

bool BrawlLib.Wii.Models.AnimationCode.UseModelScale
getset
98 {
99 get => _data[7];
100 set => _data[7] = value;
101 }

◆ UseModelTrans

bool BrawlLib.Wii.Models.AnimationCode.UseModelTrans
getset
110 {
111 get => _data[9];
112 set => _data[9] = value;
113 }

The documentation for this struct was generated from the following file: