Autoload() 공개 메소드

public Autoload ( string &name, string &texture ) : bool
name string
texture string
리턴 bool
예제 #1
0
        private void AutoloadProjectile(Type type)
        {
            ModProjectile projectile = (ModProjectile)Activator.CreateInstance(type);

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

            if (projectile.Autoload(ref name))
            {
                AddProjectile(name, projectile);
            }
        }
예제 #2
0
        private void AutoloadProjectile(Type type)
        {
            ModProjectile projectile = (ModProjectile)Activator.CreateInstance(type);

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

            if (projectile.Autoload(ref name, ref texture))
            {
                AddProjectile(name, projectile, texture);
            }
        }