Autoload() 공개 메소드

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

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

            if (waterfallStyle.Autoload(ref name, ref texture))
            {
                AddWaterfallStyle(name, waterfallStyle, texture);
            }
        }