mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Make hsRefCnt atomic, and merge with hsAtomicRefCnt
This commit is contained in:
@ -435,7 +435,7 @@ PLASMA_DEFAULT_TYPE(ptAgeInfoStructRef, "Class to hold AgeInfo struct data");
|
||||
PyObject *pyAgeInfoStructRef::New(plAgeInfoStruct &info)
|
||||
{
|
||||
ptAgeInfoStructRef *newObj = (ptAgeInfoStructRef*)ptAgeInfoStructRef_type.tp_new(&ptAgeInfoStructRef_type, NULL, NULL);
|
||||
newObj->fThis->fAgeInfo = info;
|
||||
newObj->fThis->fAgeInfo.CopyFrom(&info);
|
||||
return (PyObject*)newObj;
|
||||
}
|
||||
|
||||
|
@ -366,7 +366,7 @@ PLASMA_DEFAULT_TYPE(ptAgeLinkStructRef, "Class to hold the data of the AgeLink s
|
||||
PyObject *pyAgeLinkStructRef::New(plAgeLinkStruct &link)
|
||||
{
|
||||
ptAgeLinkStructRef *newObj = (ptAgeLinkStructRef*)ptAgeLinkStructRef_type.tp_new(&ptAgeLinkStructRef_type, NULL, NULL);
|
||||
newObj->fThis->fAgeLink = link;
|
||||
newObj->fThis->fAgeLink.CopyFrom(&link);
|
||||
return (PyObject*)newObj;
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ private:
|
||||
|
||||
protected:
|
||||
pyNetServerSessionInfo() {}
|
||||
pyNetServerSessionInfo( const plNetServerSessionInfo & info ): fInfo( info ) {}
|
||||
pyNetServerSessionInfo(const plNetServerSessionInfo & info) { fInfo.CopyFrom(&info); }
|
||||
|
||||
public:
|
||||
// required functions for PyObject interoperability
|
||||
|
@ -193,7 +193,7 @@ PYTHON_CLASS_NEW_IMPL(ptNetServerSessionInfo, pyNetServerSessionInfo)
|
||||
PyObject *pyNetServerSessionInfo::New(const plNetServerSessionInfo &info)
|
||||
{
|
||||
ptNetServerSessionInfo *newObj = (ptNetServerSessionInfo*)ptNetServerSessionInfo_type.tp_new(&ptNetServerSessionInfo_type, NULL, NULL);
|
||||
newObj->fThis->fInfo = info;
|
||||
newObj->fThis->fInfo.CopyFrom(&info);
|
||||
return (PyObject*)newObj;
|
||||
}
|
||||
|
||||
@ -354,7 +354,7 @@ PLASMA_DEFAULT_TYPE(ptNetServerSessionInfoRef, "Basic server session info class"
|
||||
PyObject *pyNetServerSessionInfoRef::New(plNetServerSessionInfo &info)
|
||||
{
|
||||
ptNetServerSessionInfoRef *newObj = (ptNetServerSessionInfoRef*)ptNetServerSessionInfoRef_type.tp_new(&ptNetServerSessionInfoRef_type, NULL, NULL);
|
||||
newObj->fThis->fInfo = info;
|
||||
newObj->fThis->fInfo.CopyFrom(&info);
|
||||
return (PyObject*)newObj;
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ void pyVaultPlayerInfoListNode::AddPlayer( uint32_t playerID )
|
||||
if (nodeIds.Count())
|
||||
VaultAddChildNode(fNode->GetNodeId(), nodeIds[0], VaultGetPlayerId(), nullptr, nullptr);
|
||||
else
|
||||
VaultFindNodes(templateNode, IAddPlayer_NodesFound, fNode);
|
||||
VaultFindNodes(templateNode, IAddPlayer_NodesFound, (NetVaultNode *)fNode);
|
||||
}
|
||||
|
||||
void pyVaultPlayerInfoListNode::RemovePlayer( uint32_t playerID )
|
||||
|
Reference in New Issue
Block a user