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

GetGoreSlot() public static method

public static GetGoreSlot ( string texture ) : int
texture string
return int
        public static int GetGoreSlot(string texture)
        {
            if (gores.ContainsKey(texture))
            {
                return gores[texture];
            }
            else
            {
                return 0;
            }
        }

Usage Example

Exemplo n.º 1
0
 public int GetGoreSlot(string name)
 {
     return(ModGore.GetGoreSlot(FileName(name)));
 }
All Usage Examples Of Terraria.ModLoader.ModGore::GetGoreSlot