BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BrawlLib.Internal.ActionEventInfo Class Reference

Public Member Functions

 ActionEventInfo ()
 
 ActionEventInfo (long id, string name, string description, string[] paramNames, string[] paramDesc)
 
 ActionEventInfo (long id, string name, string description, string[] paramNames, string[] paramDesc, string syntax, long[] dfltParams)
 
void SetDfltParameters (string s)
 
long GetDfltParameter (int i)
 
override string ToString ()
 

Public Attributes

long idNumber
 
string _name
 
string _description
 
string _syntax
 
string[] Params
 
string[] pDescs
 
long[] defaultParams
 
Dictionary< int, List< string > > Enums
 

Constructor & Destructor Documentation

◆ ActionEventInfo() [1/3]

BrawlLib.Internal.ActionEventInfo.ActionEventInfo ( )
inline
9 {
10 defaultParams = new long[0];
11 _syntax = "";
12 }
string _syntax
Definition: ActionEventInfo.cs:83
long[] defaultParams
Definition: ActionEventInfo.cs:88

◆ ActionEventInfo() [2/3]

BrawlLib.Internal.ActionEventInfo.ActionEventInfo ( long  id,
string  name,
string  description,
string[]  paramNames,
string[]  paramDesc 
)
inline
15 {
16 idNumber = id;
17 _name = name;
18 _description = description;
19 _syntax = "";
20 Params = paramNames;
21 pDescs = paramDesc;
22 defaultParams = new long[0];
23 Enums = new Dictionary<int, List<string>>();
24 }
string[] pDescs
Definition: ActionEventInfo.cs:86
string[] Params
Definition: ActionEventInfo.cs:85
string _description
Definition: ActionEventInfo.cs:82
long idNumber
Definition: ActionEventInfo.cs:80
string _name
Definition: ActionEventInfo.cs:81
Dictionary< int, List< string > > Enums
Definition: ActionEventInfo.cs:90

◆ ActionEventInfo() [3/3]

BrawlLib.Internal.ActionEventInfo.ActionEventInfo ( long  id,
string  name,
string  description,
string[]  paramNames,
string[]  paramDesc,
string  syntax,
long[]  dfltParams 
)
inline
28 {
29 idNumber = id;
30 _name = name;
31 _description = description;
32 _syntax = syntax;
33 Params = paramNames;
34 pDescs = paramDesc;
35 defaultParams = dfltParams;
36 Enums = new Dictionary<int, List<string>>();
37 }

Member Function Documentation

◆ GetDfltParameter()

long BrawlLib.Internal.ActionEventInfo.GetDfltParameter ( int  i)
inline
61 {
62 if (i >= defaultParams.Length)
63 {
64 return 0;
65 }
66
67 if (defaultParams[i] > 6)
68 {
69 return 0;
70 }
71
72 return defaultParams[i];
73 }

◆ SetDfltParameters()

void BrawlLib.Internal.ActionEventInfo.SetDfltParameters ( string  s)
inline
40 {
41 if (s == null)
42 {
43 return;
44 }
45
46 Array.Resize(ref defaultParams, s.Length);
47 for (int i = 0; i < s.Length; i++)
48 {
49 try
50 {
51 defaultParams[i] = long.Parse(s.Substring(i, 1));
52 }
53 catch
54 {
55 defaultParams[i] = 0;
56 }
57 }
58 }

◆ ToString()

override string BrawlLib.Internal.ActionEventInfo.ToString ( )
inline
76 {
77 return _name;
78 }

Member Data Documentation

◆ _description

string BrawlLib.Internal.ActionEventInfo._description

◆ _name

string BrawlLib.Internal.ActionEventInfo._name

◆ _syntax

string BrawlLib.Internal.ActionEventInfo._syntax

◆ defaultParams

long [] BrawlLib.Internal.ActionEventInfo.defaultParams

◆ Enums

Dictionary<int, List<string> > BrawlLib.Internal.ActionEventInfo.Enums

◆ idNumber

long BrawlLib.Internal.ActionEventInfo.idNumber

◆ Params

string [] BrawlLib.Internal.ActionEventInfo.Params

◆ pDescs

string [] BrawlLib.Internal.ActionEventInfo.pDescs

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