sfxSpace.cpp
Engine/source/T3D/sfx/sfxSpace.cpp
Public Functions
ConsoleDocClass(SFXSpace , "@brief A volume in space that defines an ambient sound <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">zone.\n\n</a>" "@ingroup <a href="/coding/file/sfxsystem_8h/#sfxsystem_8h_1a52e87f85ae30be82ffefd31b5c03e03d">SFX</a>" )
Detailed Description
Public Functions
ConsoleDocClass(SFXSpace , "@brief A volume in space that defines an ambient sound <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">zone.\n\n</a>" "@ingroup <a href="/coding/file/sfxsystem_8h/#sfxsystem_8h_1a52e87f85ae30be82ffefd31b5c03e03d">SFX</a>" )
IMPLEMENT_CO_NETOBJECT_V1(SFXSpace )
1 2//----------------------------------------------------------------------------- 3// Copyright (c) 2012 GarageGames, LLC 4// 5// Permission is hereby granted, free of charge, to any person obtaining a copy 6// of this software and associated documentation files (the "Software"), to 7// deal in the Software without restriction, including without limitation the 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9// sell copies of the Software, and to permit persons to whom the Software is 10// furnished to do so, subject to the following conditions: 11// 12// The above copyright notice and this permission notice shall be included in 13// all copies or substantial portions of the Software. 14// 15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21// IN THE SOFTWARE. 22//----------------------------------------------------------------------------- 23 24#include "platform/platform.h" 25#include "T3D/sfx/sfxSpace.h" 26 27#include "scene/mixin/sceneAmbientSoundObject.impl.h" 28#include "scene/mixin/scenePolyhedralObject.impl.h" 29#include "console/engineAPI.h" 30 31 32IMPLEMENT_CO_NETOBJECT_V1( SFXSpace ); 33 34ConsoleDocClass( SFXSpace, 35 "@brief A volume in space that defines an ambient sound zone.\n\n" 36 37 "@ingroup SFX" 38); 39 40//----------------------------------------------------------------------------- 41 42SFXSpace::SFXSpace() 43{ 44 mObjScale.set( 10, 10, 10 ); 45 mObjBox.set( 46 Point3F( -0.5f, -0.5f, -0.5f ), 47 Point3F( 0.5f, 0.5f, 0.5f ) 48 ); 49} 50 51//----------------------------------------------------------------------------- 52 53void SFXSpace::consoleInit() 54{ 55 // Disable rendering of SFXSpaces by default. 56 getStaticClassRep()->mIsRenderEnabled = false; 57} 58