mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Fix issues from review, and pre-emptively fix a couple of potential plString::Format issues
This commit is contained in:
@ -353,16 +353,6 @@ void plAgeInfoStruct::Clear()
|
||||
fAgeLanguage = -1;
|
||||
}
|
||||
|
||||
const char * plAgeInfoStruct::GetDisplayName() const
|
||||
{
|
||||
int seq = GetAgeSequenceNumber();
|
||||
if ( seq>0 )
|
||||
fDisplayName = plString::Format( "%s(%d) %s", GetAgeUserDefinedName(), seq, GetAgeInstanceName() );
|
||||
else
|
||||
fDisplayName = plString::Format( "%s %s", GetAgeUserDefinedName(), GetAgeInstanceName() );
|
||||
return fDisplayName.c_str();
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -85,9 +85,6 @@ class plAgeInfoStruct : public plCreatable
|
||||
// The language of the client that created this age
|
||||
int32_t fAgeLanguage;
|
||||
|
||||
// Evil (TODO: Nuke this)
|
||||
mutable plString fDisplayName;
|
||||
|
||||
enum
|
||||
{
|
||||
kHasAgeFilename = 1<<0,
|
||||
@ -147,8 +144,6 @@ public:
|
||||
void Read( hsStream * s, hsResMgr* );
|
||||
void Write( hsStream * s, hsResMgr* );
|
||||
|
||||
const char * GetDisplayName() const;
|
||||
|
||||
plString AsString() const;
|
||||
};
|
||||
|
||||
@ -305,48 +300,4 @@ public:
|
||||
virtual void WriteVersion(hsStream* s, hsResMgr* mgr);
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
//class plVaultAgeInfoNode;
|
||||
//class plAgeLinkingInfo : public plCreatable
|
||||
//{
|
||||
// int fLinkingRules;
|
||||
// uint32_t fPlayerID;
|
||||
// bool8 fSuperUser;
|
||||
// mutable plAgeInfoStruct fAgeInfo;
|
||||
// mutable plNetServerSessionInfo fServerInfo;
|
||||
//
|
||||
//public:
|
||||
// plAgeLinkingInfo();
|
||||
//
|
||||
// CLASSNAME_REGISTER( plAgeLinkingInfo );
|
||||
// GETINTERFACE_ANY( plAgeLinkingInfo, plCreatable );
|
||||
//
|
||||
// int GetLinkingRules( void ) const { return fLinkingRules;}
|
||||
// void SetLinkingRules( int v ) { fLinkingRules=v;}
|
||||
// uint32_t GetPlayerID( void ) const { return fPlayerID;}
|
||||
// void SetPlayerID( uint32_t v ) { fPlayerID=v;}
|
||||
// void SetSuperUser(bool b) { fSuperUser=b; }
|
||||
// bool GetSuperUser() const { return fSuperUser ? true : false; }
|
||||
//
|
||||
// plAgeInfoStruct * GetAgeInfo();
|
||||
// const plAgeInfoStruct * GetAgeInfo() const;
|
||||
//
|
||||
// // initializes info with age name and guid for you.
|
||||
// plNetServerSessionInfo * GetServerInfo();
|
||||
// const plNetServerSessionInfo * GetServerInfo() const;
|
||||
// const plNetServerSessionInfo * AsServerInfo() const;
|
||||
//
|
||||
// void Clear( void );
|
||||
// void CopyFrom( const plAgeLinkingInfo * other );
|
||||
// void CopyFrom( const plVaultAgeInfoNode * node );
|
||||
// void CopyFrom( const plNetServerSessionInfo * info );
|
||||
// void CopyFrom( const plAgeInfoStruct * info );
|
||||
//
|
||||
// void Read(hsStream* s, hsResMgr* mgr=nil);
|
||||
// void Write(hsStream* s, hsResMgr* mgr=nil);
|
||||
//
|
||||
// std::string AsStdString() const;
|
||||
//};
|
||||
|
||||
#endif // plNetServerSessionInfo_h_inc
|
||||
|
Reference in New Issue
Block a user