TModLoader
v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
◆
Register()
static short short
perEntityIndex
Terraria.ModLoader.GlobalList
< TGlobal >.Register
(
TGlobal
global
)
inline
static
package
Definition at line
23
of file
GlobalList.cs
.
24
{
25
if
(
loadingFinished
)
26
{
27
throw
new
Exception
(
"Loading has finished. Cannot add more globals"
);
28
}
29
short
item = (short)
_globals
.Count;
30
short
perEntityIndex
= (short)(
global
.SlotPerEntity ?
SlotsPerEntity
++ : (-1));
31
_globals
.Add(
global
);
32
return
(
index
: item,
perEntityIndex
:
perEntityIndex
);
33
}
Exception
List
Terraria.ModLoader.GlobalList._globals
static List< TGlobal > _globals
Definition
GlobalList.cs:11
Terraria.ModLoader.GlobalList.SlotsPerEntity
static int SlotsPerEntity
Definition
GlobalList.cs:19
Terraria.ModLoader.GlobalList.index
static short index
Definition
GlobalList.cs:23
Terraria.ModLoader.GlobalList.loadingFinished
static bool loadingFinished
Definition
GlobalList.cs:9
Terraria
ModLoader
GlobalList
Generated by
1.10.0