Autoload() public method

public Autoload ( string &name ) : bool
name string
return bool
Example #1
0
        private void AutoloadGlobalBgStyle(Type type)
        {
            GlobalBgStyle globalBgStyle = (GlobalBgStyle)Activator.CreateInstance(type);

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

            if (globalBgStyle.Autoload(ref name))
            {
                AddGlobalBgStyle(name, globalBgStyle);
            }
        }