Terraria.ModLoader.ModGore.ReserveGoreID C# (CSharp) Method

ReserveGoreID() static private method

static private ReserveGoreID ( ) : int
return int
        internal static int ReserveGoreID()
        {
            int reserveID = nextGore;
            nextGore++;
            return reserveID;
        }

Usage Example

Exemplo n.º 1
0
        public void AddGore(string texture, ModGore modGore = null)
        {
            int id = ModGore.ReserveGoreID();

            ModGore.gores[texture] = id;
            if (modGore != null)
            {
                ModGore.modGores[id] = modGore;
            }
        }
All Usage Examples Of Terraria.ModLoader.ModGore::ReserveGoreID