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

◆ AddToArray()

void Terraria.ModLoader.GlobalTile.AddToArray ( ref int[] array,
int type )
inline

A convenient method for adding an integer to the end of an array. This can be used with the arrays in TileID.Sets.RoomNeeds.

Parameters
array
type

Definition at line 18 of file GlobalTile.cs.

19 {
20 Array.Resize(ref array, array.Length + 1);
21 array[array.Length - 1] = type;
22 }