Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateUshortSet()

ushort[] Terraria.ID.SetFactory.CreateUshortSet ( ushort defaultState,
params ushort[] inputs )
inline

Definition at line 134 of file SetFactory.cs.

135 {
136 if (inputs.Length % 2 != 0)
137 {
138 throw new Exception("You have a bad length for inputs on CreateArraySet");
139 }
140 ushort[] ushortBuffer = GetUshortBuffer();
141 for (int i = 0; i < ushortBuffer.Length; i++)
142 {
144 }
145 for (int j = 0; j < inputs.Length; j += 2)
146 {
147 ushortBuffer[inputs[j]] = inputs[j + 1];
148 }
149 return ushortBuffer;
150 }
ushort[] GetUshortBuffer()
Definition SetFactory.cs:53

References Terraria.ID.SetFactory.GetUshortBuffer().