mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
rest of virtuals removed
virtuals removed and replaced with override where necessary on the rest of the code base, clang-tidy to the rescue.
This commit is contained in:
parent
efbe5e90f5
commit
2b295fb7f0
454 changed files with 4162 additions and 4156 deletions
|
|
@ -69,25 +69,25 @@ public:
|
|||
typedef NetEvent Parent;
|
||||
ConnectionMessageEvent(U32 msg=0, U32 seq=0, U32 gc=0)
|
||||
{ message = msg; sequence = seq; ghostCount = gc;}
|
||||
void pack(NetConnection *, BitStream *bstream)
|
||||
void pack(NetConnection *, BitStream *bstream) override
|
||||
{
|
||||
bstream->write(sequence);
|
||||
bstream->writeInt(message, 3);
|
||||
bstream->writeInt(ghostCount, NetConnection::GhostIdBitSize + 1);
|
||||
}
|
||||
void write(NetConnection *, BitStream *bstream)
|
||||
void write(NetConnection *, BitStream *bstream) override
|
||||
{
|
||||
bstream->write(sequence);
|
||||
bstream->writeInt(message, 3);
|
||||
bstream->writeInt(ghostCount, NetConnection::GhostIdBitSize + 1);
|
||||
}
|
||||
void unpack(NetConnection *, BitStream *bstream)
|
||||
void unpack(NetConnection *, BitStream *bstream) override
|
||||
{
|
||||
bstream->read(&sequence);
|
||||
message = bstream->readInt(3);
|
||||
ghostCount = bstream->readInt(NetConnection::GhostIdBitSize + 1);
|
||||
}
|
||||
void process(NetConnection *ps)
|
||||
void process(NetConnection *ps) override
|
||||
{
|
||||
ps->handleConnectionMessage(message, sequence, ghostCount);
|
||||
}
|
||||
|
|
@ -790,7 +790,7 @@ public:
|
|||
stream.setBuffer(buffer, inStream->getPosition());
|
||||
stream.setPosition(inStream->getPosition());
|
||||
}
|
||||
void process(SimObject *object)
|
||||
void process(SimObject *object) override
|
||||
{
|
||||
((NetConnection *) object)->sendPacket(&stream);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue