mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Deprecate and remove NEWZERO macro
This commit is contained in:
@ -57,14 +57,25 @@ public:
|
||||
kNotifyRcvdAllSDLStates,
|
||||
kCmdDisableNet,
|
||||
};
|
||||
|
||||
|
||||
unsigned type;
|
||||
char str[256];
|
||||
bool yes;
|
||||
|
||||
CLASSNAME_REGISTER(plNetClientMgrMsg);
|
||||
GETINTERFACE_ANY(plNetClientMgrMsg, plMessage);
|
||||
|
||||
|
||||
plNetClientMgrMsg(unsigned _type = 0, bool _yes = false, const char * _str = nil)
|
||||
: type(_type), yes(_yes)
|
||||
{
|
||||
if (_str) {
|
||||
strncpy(str, _str, arrsize(str));
|
||||
str[arrsize(str)-1] = 0;
|
||||
} else {
|
||||
memset(str, 0, sizeof(str));
|
||||
}
|
||||
}
|
||||
|
||||
void Read (hsStream *, hsResMgr *) { FATAL("plNetClientMgrMsg::Read"); }
|
||||
void Write (hsStream *, hsResMgr *) { FATAL("plNetClientMgrMsg::Write"); }
|
||||
};
|
||||
|
@ -48,9 +48,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
class plVaultNotifyMsg : public plMessage
|
||||
{
|
||||
uint16_t fType;
|
||||
uint16_t fType;
|
||||
plCreatableListHelper fArgs;
|
||||
int8_t fResultCode;
|
||||
int8_t fResultCode;
|
||||
|
||||
public:
|
||||
enum VaultNotifyTypes
|
||||
@ -73,9 +73,9 @@ public:
|
||||
GETINTERFACE_ANY_AUX( plVaultNotifyMsg, plMessage, plCreatableListHelper, fArgs );
|
||||
|
||||
uint16_t GetType() const { return fType; }
|
||||
void SetType( uint16_t v ) { fType=v; }
|
||||
void SetType( uint16_t v ) { fType=v; }
|
||||
|
||||
int8_t GetResultCode() const { return fResultCode; }
|
||||
int8_t GetResultCode() const { return fResultCode; }
|
||||
void SetResultCode( int8_t v ) { fResultCode=v; }
|
||||
|
||||
plCreatableListHelper * GetArgs() { return &fArgs; }
|
||||
|
Reference in New Issue
Block a user