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

Public Member Functions

override bool OnInitialize ()
 
override int OnCalculateSize (bool force)
 
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

RBNKInstParam hdr
 
- Public Attributes inherited from BrawlLib.SSBB.ResourceNodes.RBNKDataEntryNode
byte _key
 
- 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

RSARFileAudioNode Sound [get, set]
 
string Wave [get, set]
 
byte Attack [get, set]
 
byte Decay [get, set]
 
byte Sustain [get, set]
 
byte Release [get, set]
 
byte Hold [get, set]
 
WaveDataLocation WaveDataLocationType [get, set]
 
NoteOffType NoteOffType [get, set]
 
byte AlternateAssign [get, set]
 
byte OriginalKey [get, set]
 
byte Volume [get, set]
 
byte Pan [get, set]
 
byte SurroundPan [get, set]
 
float Pitch [get, set]
 
WaveEncoding Encoding [get]
 
int Channels [get]
 
bool IsLooped [get]
 
int SampleRate [get]
 
int LoopStartSample [get]
 
int NumSamples [get]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.RBNKDataEntryNode
byte Key [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.RBNKDataInstParamNode.OnCalculateSize ( bool  force)
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

239 {
240 return RBNKInstParam.Size;
241 }
const int Size
Definition: RBNK.cs:130

◆ OnInitialize()

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

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

220 {
221 hdr = *Header;
222
223 if (_name == null)
224 {
225 _name = $"[{Index}] InstParams";
226 }
227
228 SetSizeInternal(0x30);
229
230 if (RBNKNode.Children.Count > 1 && hdr._waveIndex < RBNKNode.Children[1].Children.Count)
231 {
232 _soundNode = RBNKNode.Children[1].Children[hdr._waveIndex] as RSARFileAudioNode;
233 }
234
235 return false;
236 }
RBNKInstParam hdr
Definition: RBNKDataNode.cs:12
void SetSizeInternal(int size)
Definition: ResourceNode.cs:799
string _name
Definition: ResourceNode.cs:139
List< ResourceNode > Children
Definition: ResourceNode.cs:262
bint _waveIndex
Definition: RBNK.cs:132

◆ OnRebuild()

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

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

244 {
245 *(RBNKInstParam*) address = hdr;
246 }

Member Data Documentation

◆ hdr

RBNKInstParam BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.hdr

Property Documentation

◆ AlternateAssign

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.AlternateAssign
getset
146 {
147 get => hdr._alternateAssign;
148 set
149 {
150 hdr._alternateAssign = value;
152 }
153 }
virtual void SignalPropertyChange()
Definition: ResourceNode.cs:313
byte _alternateAssign
Definition: RBNK.cs:140

◆ Attack

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Attack
getset
69 {
70 get => hdr._attack;
71 set
72 {
73 hdr._attack = value;
75 }
76 }
byte _attack
Definition: RBNK.cs:133

◆ Channels

int BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Channels
get

◆ Decay

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Decay
getset
80 {
81 get => hdr._decay;
82 set
83 {
84 hdr._decay = value;
86 }
87 }
byte _decay
Definition: RBNK.cs:134

◆ Encoding

WaveEncoding BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Encoding
get

◆ Hold

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Hold
getset
113 {
114 get => hdr._hold;
115 set
116 {
117 hdr._hold = value;
119 }
120 }
byte _hold
Definition: RBNK.cs:137

◆ IsLooped

bool BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.IsLooped
get

◆ LoopStartSample

int BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.LoopStartSample
get

◆ NoteOffType

NoteOffType BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.NoteOffType
getset
135 {
137 set
138 {
139 hdr._noteOffType = (byte) value;
141 }
142 }
NoteOffType NoteOffType
Definition: RBNKDataNode.cs:135
byte _noteOffType
Definition: RBNK.cs:139

◆ NumSamples

int BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.NumSamples
get

◆ OriginalKey

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.OriginalKey
getset
157 {
158 get => hdr._originalKey;
159 set
160 {
161 hdr._originalKey = value;
163 }
164 }
byte _originalKey
Definition: RBNK.cs:141

◆ Pan

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Pan
getset
179 {
180 get => hdr._pan;
181 set
182 {
183 hdr._pan = value;
185 }
186 }
byte _pan
Definition: RBNK.cs:143

◆ Pitch

float BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Pitch
getset
201 {
202 get => hdr._pitch;
203 set
204 {
205 hdr._pitch = value;
207 }
208 }
bfloat _pitch
Definition: RBNK.cs:145

◆ Release

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Release
getset
102 {
103 get => hdr._release;
104 set
105 {
106 hdr._release = value;
108 }
109 }
byte _release
Definition: RBNK.cs:136

◆ SampleRate

int BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.SampleRate
get

◆ Sound

RSARFileAudioNode BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Sound
getset
17 {
18 get => _soundNode;
19 set
20 {
21 if (_soundNode != value)
22 {
23 _soundNode = value;
24 }
25 }
26 }

◆ SurroundPan

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.SurroundPan
getset
190 {
191 get => hdr._surroundPan;
192 set
193 {
194 hdr._surroundPan = value;
196 }
197 }
byte _surroundPan
Definition: RBNK.cs:144

◆ Sustain

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Sustain
getset
91 {
92 get => hdr._sustain;
93 set
94 {
95 hdr._sustain = value;
97 }
98 }
byte _sustain
Definition: RBNK.cs:135

◆ Volume

byte BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Volume
getset
168 {
169 get => hdr._volume;
170 set
171 {
172 hdr._volume = value;
174 }
175 }
byte _volume
Definition: RBNK.cs:142

◆ Wave

string BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.Wave
getset
32 {
33 get => _soundNode == null ? null : _soundNode._name;
34 set
35 {
36 if (string.IsNullOrEmpty(value))
37 {
38 Sound = null;
39 }
40 else
41 {
42 WAVESoundNode node = null;
43 int t = 0;
44 foreach (WAVESoundNode r in RBNKNode.Children[1].Children)
45 {
46 if (r.Name == value)
47 {
48 node = r;
49 break;
50 }
51
52 t++;
53 }
54
55 if (node != null)
56 {
57 Sound = node;
58 hdr._waveIndex = t;
60 }
61 }
62 }
63 }
RSARFileAudioNode Sound
Definition: RBNKDataNode.cs:17

◆ WaveDataLocationType

WaveDataLocation BrawlLib.SSBB.ResourceNodes.RBNKDataInstParamNode.WaveDataLocationType
getset
124 {
126 set
127 {
128 hdr._waveDataLocationType = (byte) value;
130 }
131 }
WaveDataLocation
Definition: RBNK.cs:114
byte _waveDataLocationType
Definition: RBNK.cs:138

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