86 lines
2.4 KiB
C++
86 lines
2.4 KiB
C++
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#include "nel/sound/u_audio_mixer.h"
|
|
#include "nel/ligo/primitive.h"
|
|
#include "nel/misc/progress_callback.h"
|
|
#include "../world_editor/plugin_interface.h"
|
|
#include "DialogFlags.h"
|
|
#include "nel/sound/u_audio_mixer.h"
|
|
#include "LoadDialog.h"
|
|
|
|
class CPlugin : public IPluginCallback
|
|
{
|
|
public:
|
|
/// Constructor
|
|
CPlugin();
|
|
/// Destructor
|
|
~CPlugin();
|
|
private:
|
|
// @{
|
|
// \name Overload for IPluginCallback
|
|
virtual void init(IPluginAccess *pluginAccess);
|
|
|
|
/// The current region has changed.
|
|
virtual void primitiveChanged(const NLLIGO::IPrimitive *root);
|
|
|
|
/// The region has been modifed.
|
|
/// The listener has been moved on the map.
|
|
virtual void positionMoved(const NLMISC::CVector &position);
|
|
/// The plugin lost the control of the position
|
|
virtual void lostPositionControl();
|
|
// @}
|
|
|
|
// callback for mixer init progression
|
|
void progress (float progressValue);
|
|
// Dialog for mixer init progression display
|
|
//CLoadDialog *LoadDlg;
|
|
|
|
/// The world editor interface.
|
|
IPluginAccess *_PluginAccess;
|
|
|
|
/// Sound plugin dialog.
|
|
CDialogFlags *_DialogFlag;
|
|
|
|
std::string _PluginName;
|
|
|
|
bool _PluginActive;
|
|
|
|
//NLSOUND::UAudioMixer *_Mixer;
|
|
|
|
/// the position of the listener.
|
|
//NLMISC::CVector _ListenerPos;
|
|
virtual void onIdle();
|
|
|
|
//getting the name of the plugin
|
|
virtual std::string& getName();
|
|
|
|
//testing whether the plugin is active or not (currently in use or not)
|
|
virtual bool isActive();
|
|
|
|
|
|
virtual bool activatePlugin();
|
|
|
|
virtual bool closePlugin();
|
|
|
|
bool m_Initialized;
|
|
};
|
|
|
|
extern "C"
|
|
{
|
|
/// Export the C factory method for dynamic linking..
|
|
__declspec( dllexport ) void *createPlugin();
|
|
}
|