func (self *DefaultRenderer) initObj8Lights() {
	_, path, _, _ := plugins.GetPluginInfo(plugins.GetMyId())
	//aktueller Pfad ist die XPL-Datei --> noch eins nach oben
	path = filepath.Dir(path)
	//aktueller Pfad ist jetzt der 64-Ordner --> noch eins nach oben
	path = filepath.Dir(path)
	if self.configuration.DisableObj8LightSpills {
		path = filepath.Join(path, "Resources", "obj8Lights")
	} else {
		path = filepath.Join(path, "Resources", "obj8Lights", "spill")
	}
	self.greenNavRef = scenery.LoadObject(filepath.Join(path, "greenNavLight.obj"))
	self.redNavRef = scenery.LoadObject(filepath.Join(path, "redNavLight.obj"))
	self.strobeRef = scenery.LoadObject(filepath.Join(path, "strobeLight.obj"))
	self.beaconRef = scenery.LoadObject(filepath.Join(path, "beaconLight.obj"))
	self.landingRef = scenery.LoadObject(filepath.Join(path, "landingLight.obj"))
	self.taxiRef = scenery.LoadObject(filepath.Join(path, "taxiLight.obj"))
	self.otherRef = scenery.LoadObject(filepath.Join(path, "otherLight.obj"))

}
Exemple #2
0
//Messagehandler der die empfange Nachricht als Debugmeldung schreibt.
func DebugMessageHandler(msg plugins.Message) {
	name, _, _, _ := plugins.GetPluginInfo(msg.PluginId)
	logging.Debug(fmt.Sprintf("receive message from %v (ID: %v): %v", name, msg.PluginId, msg.MessageId))
}