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

Public Types

enum  VarMemType
 
enum  VariableType
 

Public Member Functions

 MoveDefEventVariableNode (string name)
 
override bool OnInitialize ()
 
void GetValue ()
 
override string ToString ()
 
string ResolveVariable (long value)
 
- Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.MoveDefEventParameterNode
bool Compare (MoveDefEventParameterNode param, int compare)
 
override bool OnInitialize ()
 
 MoveDefEventParameterNode ()
 
override int OnCalculateSize (bool force)
 
override void OnRebuild (VoidPtr address, int length, bool force)
 
- Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.MoveDefEntryNode
override void Rebuild (bool force)
 
override bool OnInitialize ()
 
ActionEventInfo GetEventInfo (long id)
 
override void SortChildren ()
 
ResourceNode FindNode (int offset)
 
ResourceNode GetByOffsetID (int id)
 
virtual void PostProcess ()
 
- 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

override ArgVarType _type [get]
 
VarMemType MemType [get, set]
 
VariableType VarType [get, set]
 
int Number [get, set]
 
override float RealValue [get]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.MoveDefEventParameterNode
override ResourceType ResourceFileType [get]
 
virtual ArgVarType _type [get]
 
virtual float RealValue [get]
 
string Description [get]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.MoveDefEntryNode
VoidPtr _rebuildBase [get]
 
int _rebuildOffset [get]
 
VoidPtr Data [get]
 
VoidPtr BaseAddress [get]
 
MDL0Node Model [get]
 
MoveDefNode Root [get]
 
int IntOffset [get]
 
int _offset [get]
 
string HexOffset [get]
 
int Size [get]
 
bool External [get]
 
override ResourceType ResourceFileType [get]
 
- 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.MoveDefEntryNode
static int Compare (ResourceNode n1, ResourceNode n2)
 
static int ActionCompare (ResourceNode n1, ResourceNode n2)
 
- 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.MoveDefEventParameterNode
int _value
 
- Public Attributes inherited from BrawlLib.SSBB.ResourceNodes.MoveDefEntryNode
int _lookupCount
 
List< int > _lookupOffsets = new List<int>()
 
VoidPtr _entryOffset = 0
 
int _entryLength
 
int _childLength
 
MoveDefExternalNode _extNode
 
bool _extOverride = false
 
int offsetID
 
bool isExtra = false
 
- 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 Enumeration Documentation

◆ VariableType

795 {
796 Basic,
797 Float,
798 Bit
799 }

◆ VarMemType

788 {
789 IC,
790 LA,
791 RA
792 }

Constructor & Destructor Documentation

◆ MoveDefEventVariableNode()

BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.MoveDefEventVariableNode ( string  name)
inline
764 {
765 _name = name != null ? name : "Variable";
766 }
string _name
Definition: ResourceNode.cs:139

Member Function Documentation

◆ GetValue()

void BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.GetValue ( )
inline
783 {
784 val = ResolveVariable(_value = (int) mem * 0x10000000 + (int) type * 0x1000000 + number.Clamp(0, 0xFFFFFF));
785 }
int _value
Definition: EventParameterNodes.cs:16
string ResolveVariable(long value)
Definition: EventParameterNodes.cs:806

◆ OnInitialize()

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

Reimplemented from BrawlLib.SSBB.ResourceNodes.MoveDefEventParameterNode.

771 {
772 if (_name == null)
773 {
774 _name = "Variable";
775 }
776
777 base.OnInitialize();
778 val = ResolveVariable((long) _value);
779 return false;
780 }

◆ ResolveVariable()

string BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.ResolveVariable ( long  value)
inline
807 {
808 string variableName = "";
809 long variableMemType = (value & 0xF0000000) / 0x10000000;
810 long variableType = (value & 0xF000000) / 0x1000000;
811 long variableNumber = value & 0xFFFFFF;
812 if (variableMemType == 0)
813 {
814 variableName = "IC-";
815 mem = VarMemType.IC;
816 }
817
818 if (variableMemType == 1)
819 {
820 variableName = "LA-";
821 mem = VarMemType.LA;
822 }
823
824 if (variableMemType == 2)
825 {
826 variableName = "RA-";
827 mem = VarMemType.RA;
828 }
829
830 if (variableType == 0)
831 {
832 variableName += "Basic";
833 type = VariableType.Basic;
834 }
835
836 if (variableType == 1)
837 {
838 variableName += "Float";
839 type = VariableType.Float;
840 }
841
842 if (variableType == 2)
843 {
844 variableName += "Bit";
845 type = VariableType.Bit;
846 }
847
848 variableName += "[" + (number = (int) variableNumber) + "]";
849
850 return variableName;
851 }
VarMemType
Definition: EventParameterNodes.cs:788
VariableType
Definition: EventParameterNodes.cs:795

◆ ToString()

override string BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.ToString ( )
inline
802 {
803 return val == null ? val = ResolveVariable(_value) : val;
804 }

Property Documentation

◆ _type

override ArgVarType BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode._type
get

◆ MemType

VarMemType BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.MemType
getset
729 {
730 get => mem;
731 set
732 {
733 mem = value;
734 GetValue();
736 }
737 }
void GetValue()
Definition: EventParameterNodes.cs:782
virtual void SignalPropertyChange()
Definition: ResourceNode.cs:313

◆ Number

int BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.Number
getset
753 {
754 get => number;
755 set
756 {
757 number = value;
758 GetValue();
760 }
761 }

◆ RealValue

override float BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.RealValue
get

◆ VarType

VariableType BrawlLib.SSBB.ResourceNodes.MoveDefEventVariableNode.VarType
getset
741 {
742 get => type;
743 set
744 {
745 type = value;
746 GetValue();
748 }
749 }

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