@ -840,11 +840,11 @@ void plNotifyMsg::Read(hsStream* stream, hsResMgr* mgr)
{
{
plMessage : : IMsgRead ( stream , mgr ) ;
plMessage : : IMsgRead ( stream , mgr ) ;
// read in the static data
// read in the static data
fType = stream - > ReadSwap 32 ( ) ;
fType = stream - > ReadLE 32 ( ) ;
stream - > ReadSwap ( & fState ) ;
stream - > ReadLE ( & fState ) ;
fID = stream - > ReadSwap 32 ( ) ;
fID = stream - > ReadLE 32 ( ) ;
// read in the variable part of the message
// read in the variable part of the message
Int32 numberEDs = stream - > ReadSwap 32 ( ) ;
Int32 numberEDs = stream - > ReadLE 32 ( ) ;
fEvents . SetCountAndZero ( numberEDs ) ;
fEvents . SetCountAndZero ( numberEDs ) ;
if ( numberEDs > 0 )
if ( numberEDs > 0 )
{
{
@ -869,12 +869,12 @@ void plNotifyMsg::Write(hsStream* stream, hsResMgr* mgr)
{
{
plMessage : : IMsgWrite ( stream , mgr ) ;
plMessage : : IMsgWrite ( stream , mgr ) ;
// write static data
// write static data
stream - > WriteSwap 32 ( fType ) ;
stream - > WriteLE 32 ( fType ) ;
stream - > WriteSwap ( fState ) ;
stream - > WriteLE ( fState ) ;
stream - > WriteSwap 32 ( fID ) ;
stream - > WriteLE 32 ( fID ) ;
// then write the variable data
// then write the variable data
Int32 numberEDs = fEvents . Count ( ) ;
Int32 numberEDs = fEvents . Count ( ) ;
stream - > WriteSwap 32 ( numberEDs ) ;
stream - > WriteLE 32 ( numberEDs ) ;
if ( numberEDs > 0 )
if ( numberEDs > 0 )
{
{
// write out each record
// write out each record
@ -903,18 +903,18 @@ void plNotifyMsg::ReadVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Read ( s ) ;
contentFlags . Read ( s ) ;
if ( contentFlags . IsBitSet ( kNotifyMsgType ) )
if ( contentFlags . IsBitSet ( kNotifyMsgType ) )
fType = s - > ReadSwap 32 ( ) ;
fType = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kNotifyMsgState ) )
if ( contentFlags . IsBitSet ( kNotifyMsgState ) )
s - > ReadSwap ( & fState ) ;
s - > ReadLE ( & fState ) ;
if ( contentFlags . IsBitSet ( kNotifyMsgID ) )
if ( contentFlags . IsBitSet ( kNotifyMsgID ) )
fID = s - > ReadSwap 32 ( ) ;
fID = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kNotifyMsgEDs ) )
if ( contentFlags . IsBitSet ( kNotifyMsgEDs ) )
{
{
// read in the variable part of the message
// read in the variable part of the message
Int32 numberEDs = s - > ReadSwap 32 ( ) ;
Int32 numberEDs = s - > ReadLE 32 ( ) ;
fEvents . SetCountAndZero ( numberEDs ) ;
fEvents . SetCountAndZero ( numberEDs ) ;
if ( numberEDs > 0 )
if ( numberEDs > 0 )
{
{
@ -946,17 +946,17 @@ void plNotifyMsg::WriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
// kNotifyMsgType
// kNotifyMsgType
s - > WriteSwap 32 ( fType ) ;
s - > WriteLE 32 ( fType ) ;
// kNotifyMsgState
// kNotifyMsgState
s - > WriteSwap ( fState ) ;
s - > WriteLE ( fState ) ;
// kNotifyMsgID
// kNotifyMsgID
s - > WriteSwap 32 ( fID ) ;
s - > WriteLE 32 ( fID ) ;
// kNotifyMsgEDs
// kNotifyMsgEDs
Int32 numberEDs = fEvents . Count ( ) ;
Int32 numberEDs = fEvents . Count ( ) ;
s - > WriteSwap 32 ( numberEDs ) ;
s - > WriteLE 32 ( numberEDs ) ;
if ( numberEDs > 0 )
if ( numberEDs > 0 )
{
{
// write out each record
// write out each record
@ -1028,7 +1028,7 @@ proEventData* proEventData::ICreateEventDataType(Int32 type)
proEventData * proEventData : : Read ( hsStream * stream , hsResMgr * mgr )
proEventData * proEventData : : Read ( hsStream * stream , hsResMgr * mgr )
{
{
Int32 evtType = stream - > ReadSwap 32 ( ) ;
Int32 evtType = stream - > ReadLE 32 ( ) ;
proEventData * data = ICreateEventDataType ( evtType ) ;
proEventData * data = ICreateEventDataType ( evtType ) ;
@ -1040,7 +1040,7 @@ proEventData* proEventData::Read( hsStream *stream, hsResMgr *mgr )
void proEventData : : Write ( hsStream * stream , hsResMgr * mgr )
void proEventData : : Write ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSwap 32 ( fEventType ) ;
stream - > WriteLE 32 ( fEventType ) ;
IWrite ( stream , mgr ) ;
IWrite ( stream , mgr ) ;
}
}
@ -1056,7 +1056,7 @@ proEventData* proEventData::ReadVersion(hsStream* s, hsResMgr* mgr)
if ( contentFlags . IsBitSet ( kProEventDataType ) )
if ( contentFlags . IsBitSet ( kProEventDataType ) )
{
{
Int32 evtType = s - > ReadSwap 32 ( ) ;
Int32 evtType = s - > ReadLE 32 ( ) ;
proEventData * data = ICreateEventDataType ( evtType ) ;
proEventData * data = ICreateEventDataType ( evtType ) ;
@ -1076,7 +1076,7 @@ void proEventData::WriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
// kProEventDataType
// kProEventDataType
s - > WriteSwap 32 ( fEventType ) ;
s - > WriteLE 32 ( fEventType ) ;
IWriteVersion ( s , mgr ) ;
IWriteVersion ( s , mgr ) ;
}
}
@ -1233,12 +1233,12 @@ void proSpawnedEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
void proControlKeyEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proControlKeyEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
fControlKey = stream - > ReadSwap 32 ( ) ;
fControlKey = stream - > ReadLE 32 ( ) ;
fDown = stream - > ReadBool ( ) ;
fDown = stream - > ReadBool ( ) ;
}
}
void proControlKeyEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proControlKeyEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSwap 32 ( fControlKey ) ;
stream - > WriteLE 32 ( fControlKey ) ;
stream - > WriteBool ( fDown ) ;
stream - > WriteBool ( fDown ) ;
}
}
@ -1254,7 +1254,7 @@ void proControlKeyEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Read ( s ) ;
contentFlags . Read ( s ) ;
if ( contentFlags . IsBitSet ( kProControlKey ) )
if ( contentFlags . IsBitSet ( kProControlKey ) )
fControlKey = s - > ReadSwap 32 ( ) ;
fControlKey = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kProControlDown ) )
if ( contentFlags . IsBitSet ( kProControlDown ) )
fDown = s - > ReadBool ( ) ;
fDown = s - > ReadBool ( ) ;
}
}
@ -1266,7 +1266,7 @@ void proControlKeyEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
// kProControlKey
// kProControlKey
s - > WriteSwap 32 ( fControlKey ) ;
s - > WriteLE 32 ( fControlKey ) ;
// kProControlDown
// kProControlDown
s - > WriteBool ( fDown ) ;
s - > WriteBool ( fDown ) ;
}
}
@ -1286,16 +1286,16 @@ void proVariableEventData::IDestruct()
void proVariableEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proVariableEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
fName = stream - > ReadSafeString ( ) ;
fName = stream - > ReadSafeString ( ) ;
fDataType = stream - > ReadSwap 32 ( ) ;
fDataType = stream - > ReadLE 32 ( ) ;
fNumber = stream - > ReadSwap Scalar ( ) ;
fNumber = stream - > ReadLE Scalar ( ) ;
fKey = mgr - > ReadKey ( stream ) ;
fKey = mgr - > ReadKey ( stream ) ;
}
}
void proVariableEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proVariableEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSafeString ( fName ) ;
stream - > WriteSafeString ( fName ) ;
stream - > WriteSwap 32 ( fDataType ) ;
stream - > WriteLE 32 ( fDataType ) ;
stream - > WriteSwap Scalar ( fNumber ) ;
stream - > WriteLE Scalar ( fNumber ) ;
mgr - > WriteKey ( stream , fKey ) ;
mgr - > WriteKey ( stream , fKey ) ;
}
}
@ -1315,9 +1315,9 @@ void proVariableEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
if ( contentFlags . IsBitSet ( kProVariableName ) )
if ( contentFlags . IsBitSet ( kProVariableName ) )
fName = s - > ReadSafeString ( ) ;
fName = s - > ReadSafeString ( ) ;
if ( contentFlags . IsBitSet ( kProVariableDataType ) )
if ( contentFlags . IsBitSet ( kProVariableDataType ) )
fDataType = s - > ReadSwap 32 ( ) ;
fDataType = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kProVariableNumber ) )
if ( contentFlags . IsBitSet ( kProVariableNumber ) )
fNumber = s - > ReadSwap Scalar ( ) ;
fNumber = s - > ReadLE Scalar ( ) ;
if ( contentFlags . IsBitSet ( kProVariableKey ) )
if ( contentFlags . IsBitSet ( kProVariableKey ) )
fKey = mgr - > ReadKey ( s ) ;
fKey = mgr - > ReadKey ( s ) ;
}
}
@ -1334,9 +1334,9 @@ void proVariableEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
// kProVariableName
// kProVariableName
s - > WriteSafeString ( fName ) ;
s - > WriteSafeString ( fName ) ;
// kProVariableDataType
// kProVariableDataType
s - > WriteSwap 32 ( fDataType ) ;
s - > WriteLE 32 ( fDataType ) ;
// kProVariableNumber
// kProVariableNumber
s - > WriteSwap Scalar ( fNumber ) ;
s - > WriteLE Scalar ( fNumber ) ;
// kProVariableKey
// kProVariableKey
mgr - > WriteKey ( s , fKey ) ;
mgr - > WriteKey ( s , fKey ) ;
}
}
@ -1345,7 +1345,7 @@ void proFacingEventData::IRead(hsStream* stream, hsResMgr* mgr)
{
{
fFacer = mgr - > ReadKey ( stream ) ;
fFacer = mgr - > ReadKey ( stream ) ;
fFacee = mgr - > ReadKey ( stream ) ;
fFacee = mgr - > ReadKey ( stream ) ;
dot = stream - > ReadSwap Scalar ( ) ;
dot = stream - > ReadLE Scalar ( ) ;
enabled = stream - > ReadBool ( ) ;
enabled = stream - > ReadBool ( ) ;
}
}
@ -1353,7 +1353,7 @@ void proFacingEventData::IWrite(hsStream* stream, hsResMgr* mgr)
{
{
mgr - > WriteKey ( stream , fFacer ) ;
mgr - > WriteKey ( stream , fFacer ) ;
mgr - > WriteKey ( stream , fFacee ) ;
mgr - > WriteKey ( stream , fFacee ) ;
stream - > WriteSwap Scalar ( dot ) ;
stream - > WriteLE Scalar ( dot ) ;
stream - > WriteBool ( enabled ) ;
stream - > WriteBool ( enabled ) ;
}
}
@ -1375,7 +1375,7 @@ void proFacingEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
if ( contentFlags . IsBitSet ( kProFacingFacee ) )
if ( contentFlags . IsBitSet ( kProFacingFacee ) )
fFacee = mgr - > ReadKey ( s ) ;
fFacee = mgr - > ReadKey ( s ) ;
if ( contentFlags . IsBitSet ( kProFacingDot ) )
if ( contentFlags . IsBitSet ( kProFacingDot ) )
dot = s - > ReadSwap Scalar ( ) ;
dot = s - > ReadLE Scalar ( ) ;
if ( contentFlags . IsBitSet ( kProFacingEnabled ) )
if ( contentFlags . IsBitSet ( kProFacingEnabled ) )
enabled = s - > ReadBool ( ) ;
enabled = s - > ReadBool ( ) ;
}
}
@ -1394,7 +1394,7 @@ void proFacingEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
// kProFacingFacee
// kProFacingFacee
mgr - > WriteKey ( s , fFacee ) ;
mgr - > WriteKey ( s , fFacee ) ;
// kProFacingDot
// kProFacingDot
s - > WriteSwap Scalar ( dot ) ;
s - > WriteLE Scalar ( dot ) ;
// kProFacingEnabled
// kProFacingEnabled
s - > WriteBool ( enabled ) ;
s - > WriteBool ( enabled ) ;
}
}
@ -1493,12 +1493,12 @@ void proActivateEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
void proCallbackEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proCallbackEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
fEventType = stream - > ReadSwap 32 ( ) ;
fEventType = stream - > ReadLE 32 ( ) ;
}
}
void proCallbackEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proCallbackEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSwap 32 ( fEventType ) ;
stream - > WriteLE 32 ( fEventType ) ;
}
}
enum ProCallbackFlags
enum ProCallbackFlags
@ -1512,7 +1512,7 @@ void proCallbackEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Read ( s ) ;
contentFlags . Read ( s ) ;
if ( contentFlags . IsBitSet ( kProCallbackEventType ) )
if ( contentFlags . IsBitSet ( kProCallbackEventType ) )
fEventType = s - > ReadSwap 32 ( ) ;
fEventType = s - > ReadLE 32 ( ) ;
}
}
void proCallbackEventData : : IWriteVersion ( hsStream * s , hsResMgr * mgr )
void proCallbackEventData : : IWriteVersion ( hsStream * s , hsResMgr * mgr )
@ -1522,17 +1522,17 @@ void proCallbackEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
// kProCallbackEventType
// kProCallbackEventType
s - > WriteSwap 32 ( fEventType ) ;
s - > WriteLE 32 ( fEventType ) ;
}
}
void proResponderStateEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proResponderStateEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
fState = stream - > ReadSwap 32 ( ) ;
fState = stream - > ReadLE 32 ( ) ;
}
}
void proResponderStateEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proResponderStateEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSwap 32 ( fState ) ;
stream - > WriteLE 32 ( fState ) ;
}
}
enum ProResponderFlags
enum ProResponderFlags
@ -1546,7 +1546,7 @@ void proResponderStateEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Read ( s ) ;
contentFlags . Read ( s ) ;
if ( contentFlags . IsBitSet ( kProResponderState ) )
if ( contentFlags . IsBitSet ( kProResponderState ) )
fState = s - > ReadSwap 32 ( ) ;
fState = s - > ReadLE 32 ( ) ;
}
}
void proResponderStateEventData : : IWriteVersion ( hsStream * s , hsResMgr * mgr )
void proResponderStateEventData : : IWriteVersion ( hsStream * s , hsResMgr * mgr )
@ -1556,20 +1556,20 @@ void proResponderStateEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
// kProResponderState
// kProResponderState
s - > WriteSwap 32 ( fState ) ;
s - > WriteLE 32 ( fState ) ;
}
}
void proMultiStageEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proMultiStageEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
fStage = stream - > ReadSwap 32 ( ) ;
fStage = stream - > ReadLE 32 ( ) ;
fEvent = stream - > ReadSwap 32 ( ) ;
fEvent = stream - > ReadLE 32 ( ) ;
fAvatar = mgr - > ReadKey ( stream ) ;
fAvatar = mgr - > ReadKey ( stream ) ;
}
}
void proMultiStageEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proMultiStageEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSwap 32 ( fStage ) ;
stream - > WriteLE 32 ( fStage ) ;
stream - > WriteSwap 32 ( fEvent ) ;
stream - > WriteLE 32 ( fEvent ) ;
mgr - > WriteKey ( stream , fAvatar ) ;
mgr - > WriteKey ( stream , fAvatar ) ;
}
}
@ -1586,9 +1586,9 @@ void proMultiStageEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Read ( s ) ;
contentFlags . Read ( s ) ;
if ( contentFlags . IsBitSet ( kProMultiStageStage ) )
if ( contentFlags . IsBitSet ( kProMultiStageStage ) )
fStage = s - > ReadSwap 32 ( ) ;
fStage = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kProMultiStageEvent ) )
if ( contentFlags . IsBitSet ( kProMultiStageEvent ) )
fEvent = s - > ReadSwap 32 ( ) ;
fEvent = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kProMultiStageAvatar ) )
if ( contentFlags . IsBitSet ( kProMultiStageAvatar ) )
fAvatar = mgr - > ReadKey ( s ) ;
fAvatar = mgr - > ReadKey ( s ) ;
}
}
@ -1602,23 +1602,23 @@ void proMultiStageEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
// kProMultiStageStage
// kProMultiStageStage
s - > WriteSwap 32 ( fStage ) ;
s - > WriteLE 32 ( fStage ) ;
// kProMultiStageEvent
// kProMultiStageEvent
s - > WriteSwap 32 ( fEvent ) ;
s - > WriteLE 32 ( fEvent ) ;
// kProMultiStageAvatar
// kProMultiStageAvatar
mgr - > WriteKey ( s , fAvatar ) ;
mgr - > WriteKey ( s , fAvatar ) ;
}
}
void proCoopEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proCoopEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
fID = stream - > ReadSwap 32 ( ) ;
fID = stream - > ReadLE 32 ( ) ;
fSerial = stream - > ReadSwap 16 ( ) ;
fSerial = stream - > ReadLE 16 ( ) ;
}
}
void proCoopEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proCoopEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSwap 32 ( fID ) ;
stream - > WriteLE 32 ( fID ) ;
stream - > WriteSwap 16 ( fSerial ) ;
stream - > WriteLE 16 ( fSerial ) ;
}
}
enum ProCoopFlags
enum ProCoopFlags
@ -1633,9 +1633,9 @@ void proCoopEventData::IReadVersion(hsStream* stream, hsResMgr* mgr)
contentFlags . Read ( stream ) ;
contentFlags . Read ( stream ) ;
if ( contentFlags . IsBitSet ( kProCoopID ) )
if ( contentFlags . IsBitSet ( kProCoopID ) )
fID = stream - > ReadSwap 32 ( ) ;
fID = stream - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kProCoopSerial ) )
if ( contentFlags . IsBitSet ( kProCoopSerial ) )
fSerial = stream - > ReadSwap 16 ( ) ;
fSerial = stream - > ReadLE 16 ( ) ;
}
}
void proCoopEventData : : IWriteVersion ( hsStream * stream , hsResMgr * mgr )
void proCoopEventData : : IWriteVersion ( hsStream * stream , hsResMgr * mgr )
@ -1645,23 +1645,23 @@ void proCoopEventData::IWriteVersion(hsStream* stream, hsResMgr* mgr)
contentFlags . SetBit ( kProCoopSerial ) ;
contentFlags . SetBit ( kProCoopSerial ) ;
contentFlags . Write ( stream ) ;
contentFlags . Write ( stream ) ;
stream - > WriteSwap 32 ( fID ) ;
stream - > WriteLE 32 ( fID ) ;
stream - > WriteSwap 16 ( fSerial ) ;
stream - > WriteLE 16 ( fSerial ) ;
}
}
void proOfferLinkingBookEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proOfferLinkingBookEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
mgr - > WriteKey ( stream , offerer ) ;
mgr - > WriteKey ( stream , offerer ) ;
stream - > WriteSwap 32 ( targetAge ) ;
stream - > WriteLE 32 ( targetAge ) ;
stream - > WriteSwap 32 ( offeree ) ;
stream - > WriteLE 32 ( offeree ) ;
}
}
void proOfferLinkingBookEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proOfferLinkingBookEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
offerer = mgr - > ReadKey ( stream ) ;
offerer = mgr - > ReadKey ( stream ) ;
targetAge = stream - > ReadSwap 32 ( ) ;
targetAge = stream - > ReadLE 32 ( ) ;
offeree = stream - > ReadSwap 32 ( ) ;
offeree = stream - > ReadLE 32 ( ) ;
}
}
enum ProOfferFlags
enum ProOfferFlags
@ -1680,8 +1680,8 @@ void proOfferLinkingBookEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
mgr - > WriteKey ( s , offerer ) ;
mgr - > WriteKey ( s , offerer ) ;
s - > WriteSwap 32 ( targetAge ) ;
s - > WriteLE 32 ( targetAge ) ;
s - > WriteSwap 32 ( offeree ) ;
s - > WriteLE 32 ( offeree ) ;
}
}
void proOfferLinkingBookEventData : : IReadVersion ( hsStream * s , hsResMgr * mgr )
void proOfferLinkingBookEventData : : IReadVersion ( hsStream * s , hsResMgr * mgr )
@ -1692,21 +1692,21 @@ void proOfferLinkingBookEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
if ( contentFlags . IsBitSet ( kProOfferOfferer ) )
if ( contentFlags . IsBitSet ( kProOfferOfferer ) )
offerer = mgr - > ReadKey ( s ) ;
offerer = mgr - > ReadKey ( s ) ;
if ( contentFlags . IsBitSet ( kProOfferTargetAge ) )
if ( contentFlags . IsBitSet ( kProOfferTargetAge ) )
targetAge = s - > ReadSwap 32 ( ) ;
targetAge = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kProOfferOfferee ) )
if ( contentFlags . IsBitSet ( kProOfferOfferee ) )
offeree = s - > ReadSwap 32 ( ) ;
offeree = s - > ReadLE 32 ( ) ;
}
}
void proBookEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
void proBookEventData : : IWrite ( hsStream * stream , hsResMgr * mgr )
{
{
stream - > WriteSwap 32 ( fEvent ) ;
stream - > WriteLE 32 ( fEvent ) ;
stream - > WriteSwap 32 ( fLinkID ) ;
stream - > WriteLE 32 ( fLinkID ) ;
}
}
void proBookEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
void proBookEventData : : IRead ( hsStream * stream , hsResMgr * mgr )
{
{
fEvent = stream - > ReadSwap 32 ( ) ;
fEvent = stream - > ReadLE 32 ( ) ;
fLinkID = stream - > ReadSwap 32 ( ) ;
fLinkID = stream - > ReadLE 32 ( ) ;
}
}
enum ProBookFlags
enum ProBookFlags
@ -1722,8 +1722,8 @@ void proBookEventData::IWriteVersion(hsStream* s, hsResMgr* mgr)
contentFlags . SetBit ( kProBookLinkID ) ;
contentFlags . SetBit ( kProBookLinkID ) ;
contentFlags . Write ( s ) ;
contentFlags . Write ( s ) ;
s - > WriteSwap 32 ( fEvent ) ;
s - > WriteLE 32 ( fEvent ) ;
s - > WriteSwap 32 ( fLinkID ) ;
s - > WriteLE 32 ( fLinkID ) ;
}
}
void proBookEventData : : IReadVersion ( hsStream * s , hsResMgr * mgr )
void proBookEventData : : IReadVersion ( hsStream * s , hsResMgr * mgr )
@ -1732,9 +1732,9 @@ void proBookEventData::IReadVersion(hsStream* s, hsResMgr* mgr)
contentFlags . Read ( s ) ;
contentFlags . Read ( s ) ;
if ( contentFlags . IsBitSet ( kProBookEvent ) )
if ( contentFlags . IsBitSet ( kProBookEvent ) )
fEvent = s - > ReadSwap 32 ( ) ;
fEvent = s - > ReadLE 32 ( ) ;
if ( contentFlags . IsBitSet ( kProBookLinkID ) )
if ( contentFlags . IsBitSet ( kProBookLinkID ) )
fLinkID = s - > ReadSwap 32 ( ) ;
fLinkID = s - > ReadLE 32 ( ) ;
}
}