/// <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); } }
// --- 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; }