BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode Class Reference
Inheritance diagram for BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode:
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 Short1 [get, set]
 
string Short2 [get, set]
 
string Short3 [get, set]
 
string Short4 [get, set]
 
string Float1 [get, set]
 
string Float2 [get, set]
 
string Short5 [get, set]
 
string Short6 [get, set]
 
string Short7 [get, set]
 
string Short8 [get, set]
 
string Short9 [get, set]
 
string Short10 [get, set]
 
string Byte1 [get, set]
 
string Byte2 [get, set]
 
string Byte3 [get, set]
 
string Byte4 [get, set]
 
string Short11 [get, set]
 
string Short12 [get, set]
 
string Int1 [get, set]
 
string Int2 [get, set]
 
string Int3 [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.AIPDSubBlockNode.OnCalculateSize ( bool  force)
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

978 {
979 return 0x30;
980 }

◆ OnInitialize()

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

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

911 {
912 if (_name == null)
913 {
914 _name = "SubBlock";
915 }
916
917 #region File Initializing
918
919 short1 = Header->_short1;
920 short2 = Header->_short2;
921 short3 = Header->_short3;
922 short4 = Header->_short4;
923 short5 = Header->_short5;
924 short6 = Header->_short6;
925 short7 = Header->_short7;
926 short8 = Header->_short8;
927 short9 = Header->_short9;
928 short10 = Header->_short10;
929 short11 = Header->_short11;
930 short12 = Header->_short12;
931 float1 = Header->_float1;
932 float2 = Header->_float2;
933 byte1 = Header->_byte1;
934 byte2 = Header->_byte2;
935 byte3 = Header->_byte3;
936 byte4 = Header->_byte4;
937 int1 = Header->_int1;
938 int2 = Header->_int2;
939 int3 = Header->_int3;
940
941 #endregion
942
943 return false;
944 }
string _name
Definition: ResourceNode.cs:139

◆ OnRebuild()

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

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

947 {
948 AIPDSubBlock* header = (AIPDSubBlock*) address;
949
950 #region Rebuilding
951
952 header->_short1 = short1;
953 header->_short2 = short2;
954 header->_short3 = short3;
955 header->_short4 = short4;
956 header->_short5 = short5;
957 header->_short6 = short6;
958 header->_short7 = short7;
959 header->_short8 = short8;
960 header->_short9 = short9;
961 header->_short10 = short10;
962 header->_short11 = short11;
963 header->_short12 = short12;
964 header->_float1 = float1;
965 header->_float2 = float2;
966 header->_byte1 = byte1;
967 header->_byte2 = byte2;
968 header->_byte3 = byte3;
969 header->_byte4 = byte4;
970 header->_int1 = int1;
971 header->_int2 = int2;
972 header->_int3 = int3;
973
974 #endregion
975 }

Property Documentation

◆ Byte1

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Byte1
getset
803 {
804 get => byte1.ToString("X");
805 set
806 {
807 byte1 = Convert.ToByte(value, 16);
809 }
810 }
virtual void SignalPropertyChange()
Definition: ResourceNode.cs:313

◆ Byte2

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Byte2
getset
815 {
816 get => byte2.ToString("X");
817 set
818 {
819 byte2 = Convert.ToByte(value, 16);
821 }
822 }

◆ Byte3

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Byte3
getset
827 {
828 get => byte3.ToString("X");
829 set
830 {
831 byte3 = Convert.ToByte(value, 16);
833 }
834 }

◆ Byte4

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Byte4
getset
839 {
840 get => byte4.ToString("X");
841 set
842 {
843 byte4 = Convert.ToByte(value, 16);
845 }
846 }

◆ Float1

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Float1
getset
715 {
716 get => float1.ToString();
717 set => float1 = Convert.ToSingle(value);
718 }

◆ Float2

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Float2
getset
723 {
724 get => float2.ToString();
725 set => float2 = Convert.ToSingle(value);
726 }

◆ Int1

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Int1
getset
875 {
876 get => int1.ToString("X");
877 set
878 {
879 int1 = Convert.ToInt32(value, 16);
881 }
882 }

◆ Int2

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Int2
getset
887 {
888 get => int2.ToString("X");
889 set
890 {
891 int2 = Convert.ToInt32(value, 16);
893 }
894 }

◆ Int3

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Int3
getset
899 {
900 get => int3.ToString("X");
901 set
902 {
903 int3 = Convert.ToInt32(value, 16);
905 }
906 }

◆ Short1

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short1
getset
667 {
668 get => short1.ToString("X");
669 set
670 {
671 short1 = Convert.ToInt16(value, 16);
673 }
674 }

◆ Short10

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short10
getset
791 {
792 get => short10.ToString("X");
793 set
794 {
795 short10 = Convert.ToInt16(value, 16);
797 }
798 }

◆ Short11

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short11
getset
851 {
852 get => short11.ToString("X");
853 set
854 {
855 short11 = Convert.ToInt16(value, 16);
857 }
858 }

◆ Short12

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short12
getset
863 {
864 get => short12.ToString("X");
865 set
866 {
867 short12 = Convert.ToInt16(value, 16);
869 }
870 }

◆ Short2

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short2
getset
679 {
680 get => short2.ToString("X");
681 set
682 {
683 short2 = Convert.ToInt16(value, 16);
685 }
686 }

◆ Short3

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short3
getset
691 {
692 get => short3.ToString("X");
693 set
694 {
695 short3 = Convert.ToInt16(value, 16);
697 }
698 }

◆ Short4

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short4
getset
703 {
704 get => short4.ToString("X");
705 set
706 {
707 short4 = Convert.ToInt16(value, 16);
709 }
710 }

◆ Short5

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short5
getset
731 {
732 get => short5.ToString("X");
733 set
734 {
735 short5 = Convert.ToInt16(value, 16);
737 }
738 }

◆ Short6

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short6
getset
743 {
744 get => short6.ToString("X");
745 set
746 {
747 short6 = Convert.ToInt16(value, 16);
749 }
750 }

◆ Short7

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short7
getset
755 {
756 get => short7.ToString("X");
757 set
758 {
759 short7 = Convert.ToInt16(value, 16);
761 }
762 }

◆ Short8

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short8
getset
767 {
768 get => short8.ToString("X");
769 set
770 {
771 short8 = Convert.ToInt16(value, 16);
773 }
774 }

◆ Short9

string BrawlLib.SSBB.ResourceNodes.AIPDSubBlockNode.Short9
getset
779 {
780 get => short9.ToString("X");
781 set
782 {
783 short9 = Convert.ToInt16(value, 16);
785 }
786 }

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