Esempio n. 1
0
        /// <summary>Loads all interfaces this plugin supports.</summary>
        public void Load(Hosts.HostInterface Host, FileSystem.FileSystem FileSystem, BaseOptions Options, object TrainManagerReference = null, object RendererReference = null)
        {
            if (this.Texture != null)
            {
                this.Texture.Load(Host);
            }

            if (this.Sound != null)
            {
                this.Sound.Load(Host);
            }

            if (this.Object != null)
            {
                this.Object.Load(Host, FileSystem);
                this.Object.SetObjectParser(Options.CurrentXParser);
                this.Object.SetObjectParser(Options.CurrentObjParser);
            }

            if (this.Route != null)
            {
                this.Route.Load(Host, FileSystem, Options, TrainManagerReference);
            }

            if (this.Train != null)
            {
                this.Train.Load(Host, FileSystem, Options, RendererReference);
            }
        }