scopeAlwaysShape.cpp
Engine/source/T3D/scopeAlwaysShape.cpp
Classes:
class
Public Functions
ConsoleDocClass(ScopeAlwaysShape , "@brief <a href="/coding/class/classstaticshape/">StaticShape</a> object which is always <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">scoped.\n\n</a>" "@note Exists <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> backwards compatibility, no real use anymore. Go with <a href="/coding/class/classtsstatic/">TSStatic</a> or <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> standard <a href="/coding/class/classstaticshape/">StaticShape</a> <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">instead.\n\n</a>" " @<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">internal\n</a>" )
Detailed Description
Public Functions
ConsoleDocClass(ScopeAlwaysShape , "@brief <a href="/coding/class/classstaticshape/">StaticShape</a> object which is always <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">scoped.\n\n</a>" "@note Exists <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> backwards compatibility, no real use anymore. Go with <a href="/coding/class/classtsstatic/">TSStatic</a> or <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> standard <a href="/coding/class/classstaticshape/">StaticShape</a> <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">instead.\n\n</a>" " @<a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">internal\n</a>" )
IMPLEMENT_CO_NETOBJECT_V1(ScopeAlwaysShape )
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 "T3D/staticShape.h" 25 26class ScopeAlwaysShape : public StaticShape 27{ 28 typedef StaticShape Parent; 29 30 public: 31 ScopeAlwaysShape(); 32 static void initPersistFields(); 33 DECLARE_CONOBJECT(ScopeAlwaysShape); 34}; 35 36ScopeAlwaysShape::ScopeAlwaysShape() 37{ 38 mNetFlags.set(Ghostable</a>|<a href="/coding/class/classnetobject/#classnetobject_1ab7f7b94af4c238c69f5673a98199a01caa501b2b8ffe184a0a58342a1b9790258">ScopeAlways); 39 mTypeMask |= StaticShapeObjectType; 40} 41 42void ScopeAlwaysShape::initPersistFields() 43{ 44 Parent::initPersistFields(); 45} 46 47IMPLEMENT_CO_NETOBJECT_V1(ScopeAlwaysShape); 48 49ConsoleDocClass( ScopeAlwaysShape, 50 "@brief StaticShape object which is always scoped.\n\n" 51 52 "@note Exists for backwards compatibility, no real use anymore. Go with TSStatic or a standard StaticShape instead.\n\n" 53 54 "@internal\n" 55); 56