Terraria.ModLoader.ModGore.ReserveGoreID C# (CSharp) 메소드

ReserveGoreID() 정적인 개인적인 메소드

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

Usage Example

예제 #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