mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Merge remote-tracking branch 'refs/remotes/origin/development' into pr/1153
This commit is contained in:
commit
10cb6ab9c4
893 changed files with 44063 additions and 6437 deletions
|
|
@ -215,7 +215,7 @@ U32 NetConnection::getSequence()
|
|||
static U32 gPacketRateToServer = 32;
|
||||
static U32 gPacketUpdateDelayToServer = 32;
|
||||
static U32 gPacketRateToClient = 10;
|
||||
static U32 gPacketSize = 200;
|
||||
static U32 gPacketSize = 508;
|
||||
|
||||
void NetConnection::consoleInit()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -287,6 +287,8 @@ public:
|
|||
AbstractClassRep* className::getClassRep() const { return &className::dynClassRep; } \
|
||||
AbstractClassRep* className::getStaticClassRep() { return &dynClassRep; } \
|
||||
AbstractClassRep* className::getParentStaticClassRep() { return Parent::getStaticClassRep(); } \
|
||||
AbstractClassRep* className::getContainerChildStaticClassRep() { return NULL; } \
|
||||
AbstractClassRep::WriteCustomTamlSchema className::getStaticWriteCustomTamlSchema() { return NULL; } \
|
||||
ConcreteClassRep<className> className::dynClassRep( #className, "Type" #className, &_smTypeId, NetClassGroupGameMask, NetClassTypeEvent, NetEventDirAny, className::getParentStaticClassRep(), &Parent::__description)
|
||||
|
||||
#define IMPLEMENT_CO_CLIENTEVENT_V1(className) \
|
||||
|
|
@ -296,6 +298,8 @@ public:
|
|||
AbstractClassRep* className::getClassRep() const { return &className::dynClassRep; } \
|
||||
AbstractClassRep* className::getStaticClassRep() { return &dynClassRep; } \
|
||||
AbstractClassRep* className::getParentStaticClassRep() { return Parent::getStaticClassRep(); } \
|
||||
AbstractClassRep* className::getContainerChildStaticClassRep() { return NULL; } \
|
||||
AbstractClassRep::WriteCustomTamlSchema className::getStaticWriteCustomTamlSchema() { return NULL; } \
|
||||
ConcreteClassRep<className> className::dynClassRep(#className, "Type" #className, &_smTypeId,NetClassGroupGameMask, NetClassTypeEvent, NetEventDirServerToClient, className::getParentStaticClassRep(), &Parent::__description)
|
||||
|
||||
#define IMPLEMENT_CO_SERVEREVENT_V1(className) \
|
||||
|
|
@ -305,6 +309,8 @@ public:
|
|||
AbstractClassRep* className::getClassRep() const { return &className::dynClassRep; } \
|
||||
AbstractClassRep* className::getStaticClassRep() { return &dynClassRep; } \
|
||||
AbstractClassRep* className::getParentStaticClassRep() { return Parent::getStaticClassRep(); } \
|
||||
AbstractClassRep* className::getContainerChildStaticClassRep() { return NULL; } \
|
||||
AbstractClassRep::WriteCustomTamlSchema className::getStaticWriteCustomTamlSchema() { return NULL; } \
|
||||
ConcreteClassRep<className> className::dynClassRep(#className, "Type" #className, &_smTypeId, NetClassGroupGameMask, NetClassTypeEvent, NetEventDirClientToServer, className::getParentStaticClassRep(), &Parent::__description)
|
||||
|
||||
#define IMPLEMENT_CO_NETEVENT(className,groupMask) \
|
||||
|
|
@ -314,6 +320,8 @@ public:
|
|||
AbstractClassRep* className::getClassRep() const { return &className::dynClassRep; } \
|
||||
AbstractClassRep* className::getStaticClassRep() { return &dynClassRep; } \
|
||||
AbstractClassRep* className::getParentStaticClassRep() { return Parent::getStaticClassRep(); } \
|
||||
AbstractClassRep* className::getContainerChildStaticClassRep() { return NULL; } \
|
||||
AbstractClassRep::WriteCustomTamlSchema className::getStaticWriteCustomTamlSchema() { return NULL; } \
|
||||
ConcreteClassRep<className> className::dynClassRep(#className, "Type" #className, &_smTypeId, groupMask, NetClassTypeEvent, NetEventDirAny, className::getParentStaticClassRep(), &Parent::__description)
|
||||
|
||||
#define IMPLEMENT_CO_CLIENTEVENT(className,groupMask) \
|
||||
|
|
@ -323,6 +331,8 @@ public:
|
|||
AbstractClassRep* className::getClassRep() const { return &className::dynClassRep; } \
|
||||
AbstractClassRep* className::getStaticClassRep() { return &dynClassRep; } \
|
||||
AbstractClassRep* className::getParentStaticClassRep() { return Parent::getStaticClassRep(); } \
|
||||
AbstractClassRep* className::getContainerChildStaticClassRep() { return NULL; } \
|
||||
AbstractClassRep::WriteCustomTamlSchema className::getStaticWriteCustomTamlSchema() { return NULL; } \
|
||||
ConcreteClassRep<className> className::dynClassRep(#className, "Type" #className, &_smTypeId, groupMask, NetClassTypeEvent, NetEventDirServerToClient, className::getParentStaticClassRep(), &Parent::__description)
|
||||
|
||||
#define IMPLEMENT_CO_SERVEREVENT(className,groupMask) \
|
||||
|
|
@ -332,6 +342,8 @@ public:
|
|||
AbstractClassRep* className::getClassRep() const { return &className::dynClassRep; } \
|
||||
AbstractClassRep* className::getStaticClassRep() { return &dynClassRep; } \
|
||||
AbstractClassRep* className::getParentStaticClassRep() { return Parent::getStaticClassRep(); } \
|
||||
AbstractClassRep* className::getContainerChildStaticClassRep() { return NULL; } \
|
||||
AbstractClassRep::WriteCustomTamlSchema className::getStaticWriteCustomTamlSchema() { return NULL; } \
|
||||
ConcreteClassRep<className> className::dynClassRep(#className, "Type" #className, &_smTypeId, groupMask, NetClassTypeEvent, NetEventDirClientToServer, className::getParentStaticClassRep(), &Parent::__description)
|
||||
|
||||
|
||||
|
|
@ -818,7 +830,7 @@ public:
|
|||
/// Some configuration values.
|
||||
enum GhostConstants
|
||||
{
|
||||
GhostIdBitSize = 12,
|
||||
GhostIdBitSize = 18, //262,144 ghosts
|
||||
MaxGhostCount = 1 << GhostIdBitSize, //4096,
|
||||
GhostLookupTableSize = 1 << GhostIdBitSize, //4096
|
||||
GhostIndexBitSize = 4 // number of bits GhostIdBitSize-3 fits into
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include "platform/platform.h"
|
||||
#include "core/dnet.h"
|
||||
#include "console/simBase.h"
|
||||
#include "console/engineAPI.h"
|
||||
#include "sim/netConnection.h"
|
||||
#include "core/stream/bitStream.h"
|
||||
#include "core/stream/fileStream.h"
|
||||
|
|
|
|||
|
|
@ -52,7 +52,13 @@ public:
|
|||
objectId = obj->getId();
|
||||
ghostIndex = index;
|
||||
}
|
||||
else
|
||||
{
|
||||
objectId = 0;
|
||||
ghostIndex = 0;
|
||||
}
|
||||
object = NULL;
|
||||
validObject = false;
|
||||
}
|
||||
~GhostAlwaysObjectEvent()
|
||||
{ delete object; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue