BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
BrawlLib.SSBB.LookupManager Class Reference

When rebuilding, add the addresses of all offset values to this collection More...

Inheritance diagram for BrawlLib.SSBB.LookupManager:

Public Member Functions

void Add (params VoidPtr[] valueAddrs)
 
void Sort ()
 
unsafe int Write (VoidPtr address)
 
void Write (ref VoidPtr address)
 
IEnumerator< VoidPtrGetEnumerator ()
 

Properties

int Count [get]
 
VoidPtr this[int index] [get, set]
 

Detailed Description

When rebuilding, add the addresses of all offset values to this collection

Member Function Documentation

◆ Add()

void BrawlLib.SSBB.LookupManager.Add ( params VoidPtr[]  valueAddrs)
inline
35 {
36 foreach (VoidPtr value in valueAddrs)
37 {
38 if (!_values.Contains(value))
39 {
40 _values.Add(value);
41 }
42 }
43 }
Definition: VoidPtr.cs:9

◆ GetEnumerator()

IEnumerator< VoidPtr > BrawlLib.SSBB.LookupManager.GetEnumerator ( )
inline
69 {
70 return _values.GetEnumerator();
71 }

◆ Sort()

void BrawlLib.SSBB.LookupManager.Sort ( )
inline
46 {
47 _values.Sort();
48 }

◆ Write() [1/2]

void BrawlLib.SSBB.LookupManager.Write ( ref VoidPtr  address)
inline
64 {
65 address += Write(address);
66 }
unsafe int Write(VoidPtr address)
Definition: SakuraiLookupManager.cs:50

◆ Write() [2/2]

unsafe int BrawlLib.SSBB.LookupManager.Write ( VoidPtr  address)
inline
51 {
52 Sort();
53
54 bint* values = (bint*) address;
55 foreach (int offset in this)
56 {
57 *values++ = offset;
58 }
59
60 return (int) values - (int) address;
61 }
void Sort()
Definition: SakuraiLookupManager.cs:45
Definition: BigEndianTypes.cs:9

Property Documentation

◆ Count

int BrawlLib.SSBB.LookupManager.Count
get

◆ this[int index]

VoidPtr BrawlLib.SSBB.LookupManager.this[int index]
getset
15 {
16 get
17 {
18 if (index >= 0 && index < _values.Count)
19 {
20 return _values[index];
21 }
22
23 return null;
24 }
25 set
26 {
27 if (index >= 0 && index < _values.Count)
28 {
29 _values[index] = value;
30 }
31 }
32 }

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