/// <summary> /// InitPluginModule : called at plugin initialization time: Add the relevant shape creators here /// </summary> public override bool InitPluginModule() { EDITOR_PLUGIN_INFO.NativePluginNames = new string[] { "Fmod" }; FmodManaged.ManagedModule.InitManagedModule(); creators = new IShapeCreatorPlugin[] { new FmodSoundShapeCreator(), new FmodEventShapeCreator(), new FmodCollisionMeshShapeCreator(), new FmodReverbShapeCreator() }; // add them to the editor foreach (IShapeCreatorPlugin plugin in creators) { EditorManager.ShapeCreatorPlugins.Add(plugin); } EditorManager.SceneChanged += new SceneChangedEventHandler(EditorManager_SceneChanged); IScene.EngineInstancesChanged += new EngineInstancesChangedEventHandler(IScene_EngineInstancesChanged); _launchDesignerPlugin = new LaunchDesignerPlugin(); EditorManager.AddMenuItemPlugin(_launchDesignerPlugin); return(true); }
/// <summary> /// InitPluginModule : called at plugin initialization time: Add the relevant shape creators here /// </summary> public override bool InitPluginModule() { EDITOR_PLUGIN_INFO.NativePluginNames = new string[] { "Fmod" }; FmodManaged.ManagedModule.InitManagedModule(); creators = new IShapeCreatorPlugin[] { new FmodSoundShapeCreator(), new FmodEventShapeCreator(), new FmodCollisionMeshShapeCreator(), new FmodReverbShapeCreator() }; // add them to the editor foreach (IShapeCreatorPlugin plugin in creators) EditorManager.ShapeCreatorPlugins.Add( plugin ); EditorManager.SceneChanged += new SceneChangedEventHandler(EditorManager_SceneChanged); IScene.EngineInstancesChanged += new EngineInstancesChangedEventHandler(IScene_EngineInstancesChanged); _launchDesignerPlugin = new LaunchDesignerPlugin(); EditorManager.AddMenuItemPlugin(_launchDesignerPlugin); return true; }