00001 #ifndef __NYTRO_SoundSourceEntity_H 00002 #define __NYTRO_SoundSourceEntity_H 00003 00004 //***************************************************************************** 00005 // Nytro GameEngine 00006 // 00007 // © Copyright 7thFACTOR Entertainment 00008 // All rights reserved 00009 //***************************************************************************** 00010 00011 #include "system/nyCommon.h" 00012 #include "game/nyGameProvider.h" 00013 00014 namespace Nytro 00015 { 00016 namespace Game 00017 { 00018 class NYTRO_API SoundSourceEntity : public Entity 00019 { 00020 public: 00021 00022 NYTRO_CLASS_NAME( SoundSourceEntity ); 00023 00024 SoundSourceEntity(); 00025 ~SoundSourceEntity(); 00026 00027 Base* clone(); 00028 EResult preCache(); 00029 void free(); 00030 void prepare(); 00031 void onPropertyValueChanged( voidptr pPropertyData ); 00032 bool onEditorDelete(); 00033 void onEditorUndoDelete(); 00034 void schematicRender(); 00035 00036 NYTRO_CLASS_HAS_PROPERTIES; 00037 00038 bool m_bLoop, m_b3DSound; 00039 SoundSource* m_pSound; 00040 float32 m_minDistance, m_maxDistance, m_soundVolume; 00041 }; 00042 }; 00043 }; 00044 00045 #endif