Game Development Community

RemoteCommandEvent: mGuaranteeType

by Martin "Founder" Hoover · in Torque Game Engine · 12/31/2004 (12:48 pm) · 4 replies

I am curious about the mGuaranteeType of commandToClient calls. I have trolled through the source and suspect that it is automatically set to GuaranteedOrdered, but I am not certain of it. Can someone more knowledgable then myself confirm it's mGuaranteeType ?

#1
12/31/2004 (2:39 pm)
GuaranteedOrdered, I believe. Did you check in engine/game/net.cc?
#2
12/31/2004 (2:53 pm)
Yeah, it's not mentioned there.
The netEvent class definition has this...(netConnection.h)
NetEvent() { mGuaranteeType = GuaranteedOrdered; mRefCount = 0; }

Which is the only place I could ever find it being assigned a value, so I am assuming that basically all netEvents are set as GuaranteedOrdered. But there is much I don't know about C++, and wanted to make sure this is the case.
#3
01/01/2005 (2:29 pm)
Yup, correct assessment. You could also check by setting some breakpoints in the CommandEvent and checking its mGuaranteeType with the debugger.
#4
01/01/2005 (3:56 pm)
Ahh, that's even more fool-proof. Thanks Ben!