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

◆ ReserveTileID()

static int Terraria.ModLoader.TileLoader.ReserveTileID ( )
inlinestaticpackage

Definition at line 139 of file TileLoader.cs.

140 {
141 if (ModNet.AllowVanillaClients)
142 {
143 throw new Exception("Adding tiles breaks vanilla client compatibility");
144 }
145 int result = nextTile;
146 nextTile++;
147 return result;
148 }

References Terraria.ModLoader.ModNet.AllowVanillaClients, and Terraria.ModLoader.TileLoader.nextTile.

Referenced by Terraria.ModLoader.ModTile.Register().

+ Here is the caller graph for this function: