Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove T2D references and minor cleanup #710

Open
wants to merge 1 commit into
base: Preview4_0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Engine/source/T3D/assets/ShapeAsset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void ShapeAsset::initPersistFields()

addProtectedField("fileName", TypeAssetLooseFilePath, Offset(mFileName, ShapeAsset),
&setShapeFile, &getShapeFile, "Path to the shape file we want to render");
addProtectedField("constuctorFileName", TypeAssetLooseFilePath, Offset(mConstructorFileName, ShapeAsset),
addProtectedField("constructorFileName", TypeAssetLooseFilePath, Offset(mConstructorFileName, ShapeAsset),
&setShapeConstructorFile, &getShapeConstructorFile, "Path to the shape file we want to render");

addProtectedField("diffuseImposterFileName", TypeAssetLooseFilePath, Offset(mDiffuseImposterFileName, ShapeAsset),
Expand Down
27 changes: 2 additions & 25 deletions Engine/source/app/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,9 @@
#include "console/consoleTypes.h"
#include "console/engineAPI.h"
#include "gui/controls/guiMLTextCtrl.h"
#ifdef TORQUE_TGB_ONLY
#include "T2D/oldModel/networking/t2dGameConnection.h"
#include "T2D/oldModel/networking/t2dNetworkServerSceneProcess.h"
#include "T2D/oldModel/networking/t2dNetworkClientSceneProcess.h"
#else
#include "T3D/gameBase/gameConnection.h"
#include "T3D/gameFunctions.h"
#include "T3D/gameBase/gameProcess.h"
#endif
#include "platform/profiler.h"
#include "gfx/gfxCubemap.h"
#include "gfx/gfxTextureManager.h"
Expand Down Expand Up @@ -252,30 +246,17 @@ bool clientProcess(U32 timeDelta)
arcaneFX::advanceTime(timeDelta);
#endif
bool ret = true;

#ifndef TORQUE_TGB_ONLY

ret = ClientProcessList::get()->advanceTime(timeDelta);
#else
ret = gt2dNetworkClientProcess.advanceTime( timeDelta );
#endif

ITickable::advanceTime(timeDelta);

#ifndef TORQUE_TGB_ONLY

// Determine if we're lagging
GameConnection* connection = GameConnection::getConnectionToServer();
if(connection)
{
connection->detectLag();
}
#else
// Determine if we're lagging
t2dGameConnection* connection = t2dGameConnection::getConnectionToServer();
if(connection)
{
connection->detectLag();
}
#endif

// Let SFX process.
SFX->_update();
Expand All @@ -286,11 +267,7 @@ bool clientProcess(U32 timeDelta)
bool serverProcess(U32 timeDelta)
{
bool ret = true;
#ifndef TORQUE_TGB_ONLY
ret = ServerProcessList::get()->advanceTime(timeDelta);
#else
ret = gt2dNetworkServerProcess.advanceTime( timeDelta );
#endif
return ret;
}

1 change: 0 additions & 1 deletion Engine/source/app/mainLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include "util/sampler.h"
#include "platform/threads/threadPool.h"

// For the TickMs define... fix this for T2D...
#include "T3D/gameBase/processList.h"
#include "cinterface/cinterface.h"

Expand Down
1 change: 0 additions & 1 deletion Engine/source/app/net/serverQuery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
#include "sim/netConnection.h"
#include "sim/netInterface.h"

// cafTODO: breaks T2D
#include "T3D/gameBase/gameConnection.h"

// This is basically the server query protocol version now:
Expand Down
3 changes: 1 addition & 2 deletions Engine/source/console/console.h
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,7 @@ namespace Con
/// @param ... Variables to be written
/// @see Con::errorf()
void errorf(ConsoleLogEntry::Type type, const char *_format, ...);

//some additions from t2d

/// Prints a separator to the console.
inline void printSeparator(void) { printf("--------------------------------------------------------------------------------"); }

Expand Down
2 changes: 1 addition & 1 deletion Engine/source/console/simObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ const char* SimObject::_getCanSave( void* object, const char* data )

//---------------------------------------------------------------------------

// Copy SimObject to another SimObject (Originally designed for T2D).
// Copy SimObject to another SimObject.
void SimObject::copyTo( SimObject* object )
{
object->mClassName = mClassName;
Expand Down
2 changes: 1 addition & 1 deletion Engine/source/console/simObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ class SimObject: public ConsoleObject, public TamlCallbacks

static void initPersistFields();

/// Copy SimObject to another SimObject (Originally designed for T2D).
/// Copy SimObject to another SimObject.
virtual void copyTo(SimObject* object);

// Component Console Overrides
Expand Down
2 changes: 1 addition & 1 deletion Engine/source/gui/controls/guiListBoxCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ const char* GuiListBoxCtrl::getStringElement( const char* inString, const U32 in
}

// Sanity!
AssertFatal( false, "t2dSceneObject::getStringElement() - Couldn't find specified string element!" );
AssertFatal( false, "GuiListBoxCtrl::getStringElement() - Couldn't find specified string element!" );
// Didn't find it
return " ";
}
Expand Down
4 changes: 2 additions & 2 deletions Engine/source/persistence/taml/taml.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ extern StringTableEntry tamlNamedObjectName;
//-----------------------------------------------------------------------------

#define TAML_SIGNATURE "Taml"
#define TAML_SCHEMA_VARIABLE "$pref::T2D::TAMLSchema"
#define TAML_JSON_STRICT_VARIBLE "$pref::T2D::JSONStrict"
#define TAML_SCHEMA_VARIABLE "$pref::T3D::TAMLSchema"
#define TAML_JSON_STRICT_VARIBLE "$pref::T3D::JSONStrict"

//-----------------------------------------------------------------------------

Expand Down