Terraria.ModLoader.GlobalWall.Autoload C# (CSharp) Method

Autoload() public method

public Autoload ( string &name ) : bool
name string
return bool
		public virtual bool Autoload(ref string name)
		{
			return mod.Properties.Autoload;
		}

Usage Example

Example #1
0
        private void AutoloadGlobalWall(Type type)
        {
            GlobalWall globalWall = (GlobalWall)Activator.CreateInstance(type);

            globalWall.mod = this;
            string name = type.Name;

            if (globalWall.Autoload(ref name))
            {
                AddGlobalWall(name, globalWall);
            }
        }