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

Autoload() public method

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

Usage Example

Ejemplo n.º 1
0
        private void AutoloadWaterStyle(Type type)
        {
            ModWaterStyle waterStyle = (ModWaterStyle)Activator.CreateInstance(type);

            waterStyle.mod = this;
            string name         = type.Name;
            string texture      = (type.Namespace + "." + type.Name).Replace('.', '/');
            string blockTexture = texture + "_Block";

            if (waterStyle.Autoload(ref name, ref texture, ref blockTexture))
            {
                AddWaterStyle(name, waterStyle, texture, blockTexture);
            }
        }