BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode Class Reference
Inheritance diagram for BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode:
BrawlLib.SSBB.ResourceNodes.ResourceNode

Public Member Functions

override bool OnInitialize ()
 
override void OnRebuild (VoidPtr address, int length, bool force)
 
override int OnCalculateSize (bool force)
 
- Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
void OnRenamed ()
 
List< ResourceNodeGetChildrenRecursive ()
 Used primarily to get bone lists. Kept for all resource nodes for utility. More...
 
virtual void SignalPropertyChange ()
 
virtual void Dispose ()
 
void SelectChildAtIndex (int index)
 
void UpdateProperties ()
 
void UpdateCurrentControl ()
 
virtual bool MoveUp ()
 
virtual bool MoveDown ()
 
virtual void OnMoved ()
 
virtual void DoMoveDown ()
 
virtual void DoMoveDown (bool select)
 
virtual void DoMoveUp ()
 
virtual void DoMoveUp (bool select)
 
virtual bool AddUp ()
 
virtual bool AddDown ()
 
virtual bool ToParent ()
 
void Populate (int levels=-1)
 
virtual void OnPopulate ()
 
void Initialize (ResourceNode parent, FileMap source)
 
void Initialize (ResourceNode parent, VoidPtr address, int length)
 
void Initialize (ResourceNode parent, DataSource origSource)
 
virtual void Initialize (ResourceNode parent, DataSource origSource, DataSource uncompSource)
 
virtual bool OnInitialize ()
 
virtual void Restore ()
 
virtual void Remove ()
 
virtual void RemoveChild (ResourceNode child)
 
virtual void AddChild (ResourceNode child)
 
virtual void AddChild (ResourceNode child, bool change)
 
virtual void InsertChild (ResourceNode child, int index)
 
virtual void InsertChild (ResourceNode child, bool change, int index)
 
void SetSizeInternal (int size)
 
virtual void Replace (string fileName)
 
virtual void Replace (ResourceNode node)
 
virtual void Replace (string fileName, FileMapProtect prot, FileOptions options)
 
virtual void ReplaceRaw (VoidPtr address, int length)
 
virtual void ReplaceRaw (FileMap map)
 
virtual void Export (string outPath)
 
void Export (FileStream outStream)
 
virtual void ExportUncompressed (string outPath)
 
void ExportUncompressed (FileStream outStream)
 
virtual void Rebuild ()
 
virtual void Rebuild (bool force)
 
virtual void Rebuild (VoidPtr address, int length, bool force)
 
virtual void OnRebuild (VoidPtr address, int length, bool force)
 
virtual int CalculateSize (bool force)
 
virtual int OnCalculateSize (bool force)
 
void Merge ()
 
void Merge (bool forceBuild)
 
ResourceNode FindChildByType (string path, bool searchChildren, params ResourceType[] types)
 
ResourceNode FindChildByType (string path, bool searchChildren, StringComparison compare, params ResourceType[] types)
 
ResourceNode FindChild (string path)
 
ResourceNode FindChild (string path, bool searchChildren)
 
ResourceNode FindChild (string path, StringComparison compare)
 
ResourceNode FindChild (string path, bool searchChildren, StringComparison compare)
 
ResourceNode[] FindChildrenByClassType (string path, Type type)
 
ResourceNode[] FindChildrenByType (string path, ResourceType type)
 
ResourceNode[] FindChildrenByTypeInGroup (string path, ResourceType type, byte group)
 
ResourceNode[] FindChildrenByName (string name)
 
unsafe string FindName (string name)
 
ResourceNode FindEmbeddedIndex (int index)
 
virtual unsafe byte[] MD5 ()
 Find the MD5 checksum of this node's data. If this node doesn't have any data (BRESGroupNode, for example), this method will return null. More...
 
string MD5Str ()
 Get the result of the MD5() function as a string of hexadecimal digits. If MD5() returns null, this method will return an empty string. More...
 
ResourceNode PrevSibling ()
 
ResourceNode NextSibling ()
 
override string ToString ()
 
virtual void SortChildren ()
 

Properties

string Float1 [get, set]
 
string Float2 [get, set]
 
string Short1 [get, set]
 
string Short2 [get, set]
 
string Short3 [get, set]
 
string Short4 [get, set]
 
string Float3 [get, set]
 
string Float4 [get, set]
 
string Short5 [get, set]
 
string Short6 [get, set]
 
string Short7 [get, set]
 
string Short8 [get, set]
 
string Float5 [get, set]
 
string Short9 [get, set]
 
string Short10 [get, set]
 
string Float6 [get, set]
 
string Short11 [get, set]
 
string Short12 [get, set]
 
string Float7 [get, set]
 
string Float8 [get, set]
 
string Float9 [get, set]
 
string Float10 [get, set]
 
string Int1 [get, set]
 
string Int2 [get, set]
 
string Int3 [get, set]
 
string Int4 [get, set]
 
string Int5 [get, set]
 
string Int6 [get, set]
 
string Int7 [get, set]
 
string Byte1 [get, set]
 
string Byte2 [get, set]
 
string Byte3 [get, set]
 
string Byte4 [get, set]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
string FilePath [get]
 
string FileName [get]
 
string DirectoryName [get]
 
ResourceNode RootNode [get]
 
DataSource OriginalSource [get]
 
DataSource UncompressedSource [get]
 
DataSource WorkingSource [get]
 
DataSource WorkingUncompressed [get]
 
virtual bool HasChildren [get]
 
virtual ResourceType ResourceFileType [get]
 
string NodeType [get]
 
virtual string TreePathAbsolute [get]
 
virtual string TreePath [get]
 
virtual int Level [get]
 
virtual int MaxNameLength [get]
 
virtual bool AllowDuplicateNames [get]
 
virtual bool AllowNullNames [get]
 
virtual string Name [get, set]
 
ResourceNode Parent [get, set]
 
List< ResourceNodeChildren [get]
 
int Index [get]
 
int HexIndex [get]
 
bool IsCompressed [get]
 
bool HasChanged [get, set]
 
bool IsBranch [get]
 
bool HasMerged [get]
 
virtual bool AllowSaving [get, set]
 
virtual bool IsDirty [get, set]
 
virtual uint UncompressedSize [get]
 
virtual Type[] AllowedChildTypes [get]
 
virtual string Compression [get, set]
 
virtual bool RetainChildrenOnReplace [get]
 
virtual bool supportsCompression [get]
 
static MD5CryptoServiceProvider MD5Provider [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
static ResourceNode[] FindAllSubNodes (ResourceNode root)
 
static ResourceNode FindNode (ResourceNode root, string path, bool searchChildren, StringComparison compare)
 
- Public Attributes inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
Form _mainForm
 
string _name
 
string _origPath
 
ResourceNode _parent
 
List< ResourceNode_children = new List<ResourceNode>()
 
int _calcSize
 
EventHandler UpdateControl
 
MoveEventHandler MovedDown
 
ResourceEventHandler Renamed
 
ResourceEventHandler PropertyChanged
 
ResourceEventHandler Replaced
 
ResourceEventHandler Restored
 
ResourceChildEventHandler ChildRemoved
 
bool _isPopulating
 
bool _replaced
 
- Protected Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
void ForceReplacedEvent ()
 
virtual void MergeInternal ()
 
- Events inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
SelectEventHandler SelectChild
 
EventHandler UpdateProps
 
MoveEventHandler MovedUp
 
ResourceEventHandler Disposing
 
ResourceChildEventHandler ChildAdded
 
ResourceChildInsertEventHandler ChildInserted
 

Member Function Documentation

◆ OnCalculateSize()

override int BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.OnCalculateSize ( bool  force)
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

632 {
633 return 0x60;
634 }

◆ OnInitialize()

override bool BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.OnInitialize ( )
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

541 {
542 if (_name == null)
543 {
544 _name = "DefBlock";
545 }
546
547 #region Fields Initializing
548
549 float1 = Header->_float1;
550 float2 = Header->_float2;
551 float3 = Header->_float3;
552 float4 = Header->_float4;
553 float5 = Header->_float5;
554 float6 = Header->_float6;
555 float7 = Header->_float7;
556 float8 = Header->_float8;
557 float9 = Header->_float9;
558 float10 = Header->_float10;
559 short1 = Header->_short1;
560 short2 = Header->_short2;
561 short3 = Header->_short3;
562 short4 = Header->_short4;
563 short5 = Header->_short5;
564 short6 = Header->_short6;
565 short7 = Header->_short7;
566 short8 = Header->_short8;
567 short9 = Header->_short9;
568 short10 = Header->_short10;
569 short11 = Header->_short11;
570 short12 = Header->_short12;
571 int1 = Header->_int1;
572 int2 = Header->_int2;
573 int3 = Header->_int3;
574 int4 = Header->_int4;
575 int5 = Header->_int5;
576 int6 = Header->_int6;
577 int7 = Header->_int7;
578 byte1 = Header->_byte1;
579 byte2 = Header->_byte2;
580 byte3 = Header->_byte3;
581 byte4 = Header->_byte4;
582
583 #endregion
584
585 return false;
586 }
string _name
Definition: ResourceNode.cs:139

◆ OnRebuild()

override void BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.OnRebuild ( VoidPtr  address,
int  length,
bool  force 
)
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

589 {
590 AIPDDefBlock* header = (AIPDDefBlock*) address;
591
592 #region Rebuilding
593
594 header->_float1 = float1;
595 header->_float2 = float2;
596 header->_float3 = float3;
597 header->_float4 = float4;
598 header->_float5 = float5;
599 header->_float6 = float6;
600 header->_float7 = float7;
601 header->_float8 = float8;
602 header->_float9 = float9;
603 header->_float10 = float10;
604 header->_short1 = short1;
605 header->_short2 = short2;
606 header->_short3 = short3;
607 header->_short4 = short4;
608 header->_short5 = short5;
609 header->_short6 = short6;
610 header->_short7 = short7;
611 header->_short8 = short8;
612 header->_short9 = short9;
613 header->_short10 = short10;
614 header->_short11 = short11;
615 header->_short12 = short12;
616 header->_int1 = int1;
617 header->_int2 = int2;
618 header->_int3 = int3;
619 header->_int4 = int4;
620 header->_int5 = int5;
621 header->_int6 = int6;
622 header->_int7 = int7;
623 header->_byte1 = byte1;
624 header->_byte2 = byte2;
625 header->_byte3 = byte3;
626 header->_byte4 = byte4;
627
628 #endregion
629 }

Property Documentation

◆ Byte1

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Byte1
getset
493 {
494 get => byte1.ToString("X");
495 set
496 {
497 byte1 = Convert.ToByte(value, 16);
499 }
500 }
virtual void SignalPropertyChange()
Definition: ResourceNode.cs:313

◆ Byte2

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Byte2
getset
505 {
506 get => byte2.ToString("X");
507 set
508 {
509 byte2 = Convert.ToByte(value, 16);
511 }
512 }

◆ Byte3

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Byte3
getset
517 {
518 get => byte3.ToString("X");
519 set
520 {
521 byte3 = Convert.ToByte(value, 16);
523 }
524 }

◆ Byte4

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Byte4
getset
529 {
530 get => byte4.ToString("X");
531 set
532 {
533 byte4 = Convert.ToByte(value, 16);
535 }
536 }

◆ Float1

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float1
getset
145 {
146 get => float1.ToString();
147 set
148 {
149 float1 = Convert.ToSingle(value);
151 }
152 }

◆ Float10

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float10
getset
397 {
398 get => float10.ToString();
399 set
400 {
401 float10 = Convert.ToSingle(value);
403 }
404 }

◆ Float2

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float2
getset
157 {
158 get => float2.ToString();
159 set
160 {
161 float2 = Convert.ToSingle(value);
163 }
164 }

◆ Float3

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float3
getset
217 {
218 get => float3.ToString();
219 set
220 {
221 float3 = Convert.ToSingle(value);
223 }
224 }

◆ Float4

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float4
getset
229 {
230 get => float4.ToString();
231 set
232 {
233 float4 = Convert.ToSingle(value);
235 }
236 }

◆ Float5

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float5
getset
289 {
290 get => float5.ToString();
291 set
292 {
293 float5 = Convert.ToSingle(value);
295 }
296 }

◆ Float6

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float6
getset
325 {
326 get => float6.ToString();
327 set
328 {
329 float6 = Convert.ToSingle(value);
331 }
332 }

◆ Float7

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float7
getset
361 {
362 get => float7.ToString();
363 set
364 {
365 float7 = Convert.ToSingle(value);
367 }
368 }

◆ Float8

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float8
getset
373 {
374 get => float8.ToString();
375 set
376 {
377 float8 = Convert.ToSingle(value);
379 }
380 }

◆ Float9

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Float9
getset
385 {
386 get => float9.ToString();
387 set
388 {
389 float9 = Convert.ToSingle(value);
391 }
392 }

◆ Int1

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Int1
getset
409 {
410 get => int1.ToString("X");
411 set
412 {
413 int1 = Convert.ToInt32(value, 16);
415 }
416 }

◆ Int2

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Int2
getset
421 {
422 get => int2.ToString("X");
423 set
424 {
425 int2 = Convert.ToInt32(value, 16);
427 }
428 }

◆ Int3

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Int3
getset
433 {
434 get => int3.ToString("X");
435 set
436 {
437 int3 = Convert.ToInt32(value, 16);
439 }
440 }

◆ Int4

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Int4
getset
445 {
446 get => int4.ToString("X");
447 set
448 {
449 int4 = Convert.ToInt32(value, 16);
451 }
452 }

◆ Int5

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Int5
getset
457 {
458 get => int5.ToString("X");
459 set
460 {
461 int5 = Convert.ToInt32(value, 16);
463 }
464 }

◆ Int6

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Int6
getset
469 {
470 get => int6.ToString("X");
471 set
472 {
473 int6 = Convert.ToInt32(value, 16);
475 }
476 }

◆ Int7

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Int7
getset
481 {
482 get => int7.ToString("X");
483 set
484 {
485 int7 = Convert.ToInt32(value, 16);
487 }
488 }

◆ Short1

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short1
getset
169 {
170 get => short1.ToString("X");
171 set
172 {
173 short1 = Convert.ToInt16(value, 16);
175 }
176 }

◆ Short10

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short10
getset
313 {
314 get => short10.ToString("X");
315 set
316 {
317 short10 = Convert.ToInt16(value, 16);
319 }
320 }

◆ Short11

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short11
getset
337 {
338 get => short11.ToString("X");
339 set
340 {
341 short11 = Convert.ToInt16(value, 16);
343 }
344 }

◆ Short12

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short12
getset
349 {
350 get => short12.ToString("X");
351 set
352 {
353 short12 = Convert.ToInt16(value, 16);
355 }
356 }

◆ Short2

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short2
getset
181 {
182 get => short2.ToString("X");
183 set
184 {
185 short2 = Convert.ToInt16(value, 16);
187 }
188 }

◆ Short3

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short3
getset
193 {
194 get => short3.ToString("X");
195 set
196 {
197 short3 = Convert.ToInt16(value, 16);
199 }
200 }

◆ Short4

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short4
getset
205 {
206 get => short4.ToString("X");
207 set
208 {
209 short4 = Convert.ToInt16(value, 16);
211 }
212 }

◆ Short5

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short5
getset
241 {
242 get => short5.ToString("X");
243 set
244 {
245 short5 = Convert.ToInt16(value, 16);
247 }
248 }

◆ Short6

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short6
getset
253 {
254 get => short6.ToString("X");
255 set
256 {
257 short6 = Convert.ToInt16(value, 16);
259 }
260 }

◆ Short7

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short7
getset
265 {
266 get => short7.ToString("X");
267 set
268 {
269 short7 = Convert.ToInt16(value, 16);
271 }
272 }

◆ Short8

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short8
getset
277 {
278 get => short8.ToString("X");
279 set
280 {
281 short8 = Convert.ToInt16(value, 16);
283 }
284 }

◆ Short9

string BrawlLib.SSBB.ResourceNodes.AIPDDefBlockNode.Short9
getset
301 {
302 get => short9.ToString("X");
303 set
304 {
305 short9 = Convert.ToInt16(value, 16);
307 }
308 }

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