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

Public Member Functions

override int OnCalculateSize (bool force)
 
override bool OnInitialize ()
 
override void OnRebuild (VoidPtr address, int length, 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 ()
 

Public Attributes

TBGDEntry Data
 
- 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
 

Properties

byte Villager [get, set]
 
byte Unknown0x01 [get, set]
 
byte Unknown0x02 [get, set]
 
byte Unknown0x03 [get, set]
 
float AnimationPlaybackSpeed [get, set]
 
bool PlayAnim1 [get, set]
 
bool PlayAnim2 [get, set]
 
bool PlayAnim3 [get, set]
 
bool PlayAnim4 [get, set]
 
bool PlayAnim5 [get, set]
 
bool PlayAnim6 [get, set]
 
bool PlayAnim7 [get, set]
 
bool PlayAnim8 [get, set]
 
bool PlayAnim9 [get, set]
 
bool PlayAnim10 [get, set]
 
bool PlayAnim11 [get, set]
 
bool PlayAnim12 [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)
 
- 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.TBGDEntryNode.OnCalculateSize ( bool  force)
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

230 {
231 return TBGDEntry.Size;
232 }
Definition: TBGDEntry.cs:8
const int Size
Definition: TBGDEntry.cs:9

◆ OnInitialize()

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

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

235 {
237
238 if (_name == null)
239 {
240 if (Enum.GetValues(typeof(VillagerID)).Cast<VillagerID>().Any(o => (byte) o == Villager))
241 {
242 var villagerName = ((VillagerNameAttribute) ((VillagerID)Villager).GetType().GetField(((VillagerID)Villager).ToString()).GetCustomAttributes(true)
243 .FirstOrDefault(a => a is VillagerNameAttribute))?.Name ?? ((VillagerID)Villager).ToString();
244 _name = $"{villagerName} [{Index}]";
245 }
246 else
247 {
248 _name = $"Villager0x{Villager:X2} [{Index}]";
249 }
250 }
251
252 return false;
253 }
override string ToString()
Definition: ResourceNode.cs:1751
string _name
Definition: ResourceNode.cs:139
virtual string Name
Definition: ResourceNode.cs:223
DataSource WorkingUncompressed
Definition: ResourceNode.cs:183
TBGDEntry Data
Definition: TBGDNode.cs:27
byte Villager
Definition: TBGDNode.cs:32
VillagerID
Definition: TBGCNode.cs:47
VoidPtr Address
Definition: ResourceNode.cs:31

◆ OnRebuild()

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

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

256 {
257 *(TBGDEntry*)address = Data;
258 }

Member Data Documentation

◆ Data

TBGDEntry BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.Data

Property Documentation

◆ AnimationPlaybackSpeed

float BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.AnimationPlaybackSpeed
getset
76 {
78 set
79 {
80 Data._animationPlaybackSpeed = value;
82 }
83 }
virtual void SignalPropertyChange()
Definition: ResourceNode.cs:313
bfloat _animationPlaybackSpeed
Definition: TBGDEntry.cs:15

◆ PlayAnim1

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim1
getset
88 {
89 get => Data._playAnim1;
90 set
91 {
92 Data._playAnim1 = value;
94 }
95 }
bool8 _playAnim1
Definition: TBGDEntry.cs:16

◆ PlayAnim10

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim10
getset
196 {
197 get => Data._playAnim10;
198 set
199 {
200 Data._playAnim10 = value;
202 }
203 }
bool8 _playAnim10
Definition: TBGDEntry.cs:25

◆ PlayAnim11

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim11
getset
208 {
209 get => Data._playAnim11;
210 set
211 {
212 Data._playAnim11 = value;
214 }
215 }
bool8 _playAnim11
Definition: TBGDEntry.cs:26

◆ PlayAnim12

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim12
getset
220 {
221 get => Data._playAnim12;
222 set
223 {
224 Data._playAnim12 = value;
226 }
227 }
bool8 _playAnim12
Definition: TBGDEntry.cs:27

◆ PlayAnim2

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim2
getset
100 {
101 get => Data._playAnim2;
102 set
103 {
104 Data._playAnim2 = value;
106 }
107 }
bool8 _playAnim2
Definition: TBGDEntry.cs:17

◆ PlayAnim3

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim3
getset
112 {
113 get => Data._playAnim3;
114 set
115 {
116 Data._playAnim3 = value;
118 }
119 }
bool8 _playAnim3
Definition: TBGDEntry.cs:18

◆ PlayAnim4

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim4
getset
124 {
125 get => Data._playAnim4;
126 set
127 {
128 Data._playAnim4 = value;
130 }
131 }
bool8 _playAnim4
Definition: TBGDEntry.cs:19

◆ PlayAnim5

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim5
getset
136 {
137 get => Data._playAnim5;
138 set
139 {
140 Data._playAnim5 = value;
142 }
143 }
bool8 _playAnim5
Definition: TBGDEntry.cs:20

◆ PlayAnim6

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim6
getset
148 {
149 get => Data._playAnim6;
150 set
151 {
152 Data._playAnim6 = value;
154 }
155 }
bool8 _playAnim6
Definition: TBGDEntry.cs:21

◆ PlayAnim7

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim7
getset
160 {
161 get => Data._playAnim7;
162 set
163 {
164 Data._playAnim7 = value;
166 }
167 }
bool8 _playAnim7
Definition: TBGDEntry.cs:22

◆ PlayAnim8

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim8
getset
172 {
173 get => Data._playAnim8;
174 set
175 {
176 Data._playAnim8 = value;
178 }
179 }
bool8 _playAnim8
Definition: TBGDEntry.cs:23

◆ PlayAnim9

bool BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.PlayAnim9
getset
184 {
185 get => Data._playAnim9;
186 set
187 {
188 Data._playAnim9 = value;
190 }
191 }
bool8 _playAnim9
Definition: TBGDEntry.cs:24

◆ Unknown0x01

byte BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.Unknown0x01
getset
43 {
44 get => Data._unk0x01;
45 set
46 {
47 Data._unk0x01 = value;
49 }
50 }
byte _unk0x01
Definition: TBGDEntry.cs:12

◆ Unknown0x02

byte BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.Unknown0x02
getset
54 {
55 get => Data._unk0x02;
56 set
57 {
58 Data._unk0x02 = value;
60 }
61 }
byte _unk0x02
Definition: TBGDEntry.cs:13

◆ Unknown0x03

byte BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.Unknown0x03
getset
65 {
66 get => Data._unk0x03;
67 set
68 {
69 Data._unk0x03 = value;
71 }
72 }
byte _unk0x03
Definition: TBGDEntry.cs:14

◆ Villager

byte BrawlLib.SSBB.ResourceNodes.TBGDEntryNode.Villager
getset
32 {
33 get => Data._villagerId;
34 set
35 {
36 Data._villagerId = value;
38 }
39 }
byte _villagerId
Definition: TBGDEntry.cs:11

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