Autoload() public method

public Autoload ( string &name, string &texture ) : bool
name string
texture string
return bool
Beispiel #1
0
        private void AutoloadDust(Type type)
        {
            ModDust dust = (ModDust)Activator.CreateInstance(type);

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

            if (dust.Autoload(ref name, ref texture))
            {
                AddDust(name, dust, texture);
            }
        }