Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CodeIdentifiers.cs
Go to the documentation of this file.
3
5
6public class CodeIdentifiers
7{
9
11
13
14 private bool _camelCase;
15
16 public bool UseCamelCasing
17 {
18 get
19 {
20 return _camelCase;
21 }
22 set
23 {
25 }
26 }
27
30 {
31 }
32
48
49 public void Clear()
50 {
52 _list.Clear();
53 }
54
55 public string MakeRightCase(string identifier)
56 {
57 if (_camelCase)
58 {
60 }
62 }
63
64 public string MakeUnique(string identifier)
65 {
67 {
68 int num = 1;
69 string text;
70 while (true)
71 {
73 if (!IsInUse(text))
74 {
75 break;
76 }
77 num++;
78 }
80 }
81 if (identifier.Length > 511)
82 {
83 return MakeUnique("Item");
84 }
85 return identifier;
86 }
87
92
97
98 public string AddUnique(string identifier, object? value)
99 {
102 return identifier;
103 }
104
105 public bool IsInUse(string identifier)
106 {
108 {
110 }
111 return true;
112 }
113
114 public void Add(string identifier, object? value)
115 {
117 _list.Add(value);
118 }
119
120 public void Remove(string identifier)
121 {
124 }
125
126 public object ToArray(Type type)
127 {
129 _list.CopyTo(array, 0);
130 return array;
131 }
132
142}
static unsafe Array CreateInstance(Type elementType, int length)
Definition Array.cs:473
virtual void Remove(object? obj)
virtual int Add(object? value)
virtual void CopyTo(Array array)
virtual bool Contains(object key)
Definition Hashtable.cs:719
virtual void Remove(object key)
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
static CultureInfo InvariantCulture
static string MakePascal(string identifier)
static string MakeCamel(string identifier)
string MakeRightCase(string identifier)
void Add(string identifier, object? value)
string AddUnique(string identifier, object? value)