OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
cod2client.MsgWriter Class Reference

Public Member Functions

 __init__ (self)
 bits (self, value, count)
 byte (self, value)
 long (self, value)
 string (self, text)

Public Attributes

 data = bytearray()
int bit = 0

Detailed Description

Mirrors the server's msg_t: bit fields share a byte that later whole-byte
writes skip past, which is how MSG_ReadBits and MSG_ReadLong read them back.

Constructor & Destructor Documentation

◆ __init__()

cod2client.MsgWriter.__init__ ( self)

Member Function Documentation

◆ bits()

cod2client.MsgWriter.bits ( self,
value,
count )

◆ byte()

cod2client.MsgWriter.byte ( self,
value )

◆ long()

cod2client.MsgWriter.long ( self,
value )

◆ string()

cod2client.MsgWriter.string ( self,
text )

Member Data Documentation

◆ bit

int cod2client.MsgWriter.bit = 0

◆ data

cod2client.MsgWriter.data = bytearray()

The documentation for this class was generated from the following file: