Represents the host application and functionality it exposes.
예제 #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);
            }
        }
예제 #2
0
		// --- functions ---
		
		/// <summary>Called when the plugin is loaded.</summary>
		/// <param name="host">The host that loaded the plugin.</param>
		public override void Load(HostInterface host) {
			CurrentHost = host;
		}