mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
@ -47,6 +47,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
|
|
||||||
#include "pyGameCli.h"
|
#include "pyGameCli.h"
|
||||||
#include "pfGameMgr/pfGameMgr.h"
|
#include "pfGameMgr/pfGameMgr.h"
|
||||||
|
#include "pnUUID/pnUUID.h"
|
||||||
|
|
||||||
#include "TicTacToe/pyTTTGame.h"
|
#include "TicTacToe/pyTTTGame.h"
|
||||||
#include "Heek/pyHeekGame.h"
|
#include "Heek/pyHeekGame.h"
|
||||||
@ -104,7 +105,7 @@ plUUID pyGameCli::GameTypeID() const
|
|||||||
{
|
{
|
||||||
if (gameClient)
|
if (gameClient)
|
||||||
{
|
{
|
||||||
return plUUID(gameClient->GetGameTypeId());
|
return gameClient->GetGameTypeId();
|
||||||
}
|
}
|
||||||
return kNilUuid;
|
return kNilUuid;
|
||||||
}
|
}
|
||||||
|
@ -52,10 +52,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
#include "../pyGlueHelpers.h"
|
#include "../pyGlueHelpers.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "pnUUID/pnUUID.h"
|
|
||||||
|
|
||||||
class pfGameCli;
|
class pfGameCli;
|
||||||
class plString;
|
class plString;
|
||||||
|
class plUUID;
|
||||||
|
|
||||||
class pyGameCli
|
class pyGameCli
|
||||||
{
|
{
|
||||||
|
@ -44,6 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
#include "../pyKey.h"
|
#include "../pyKey.h"
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
|
||||||
|
#include "pnUUID/pnUUID.h"
|
||||||
#include "pyGameCli.h"
|
#include "pyGameCli.h"
|
||||||
#include "../pyEnum.h"
|
#include "../pyEnum.h"
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ plUUID pyGameMgrInviteReceivedMsg::GameTypeID() const
|
|||||||
if (message)
|
if (message)
|
||||||
{
|
{
|
||||||
const Srv2Cli_GameMgr_InviteReceived* gmMsg = (const Srv2Cli_GameMgr_InviteReceived*)message->netMsg;
|
const Srv2Cli_GameMgr_InviteReceived* gmMsg = (const Srv2Cli_GameMgr_InviteReceived*)message->netMsg;
|
||||||
return plUUID(gmMsg->gameTypeId);
|
return gmMsg->gameTypeId;
|
||||||
}
|
}
|
||||||
return kNilUuid;
|
return kNilUuid;
|
||||||
}
|
}
|
||||||
@ -148,7 +148,7 @@ plUUID pyGameMgrInviteRevokedMsg::GameTypeID() const
|
|||||||
if (message)
|
if (message)
|
||||||
{
|
{
|
||||||
const Srv2Cli_GameMgr_InviteRevoked* gmMsg = (const Srv2Cli_GameMgr_InviteRevoked*)message->netMsg;
|
const Srv2Cli_GameMgr_InviteRevoked* gmMsg = (const Srv2Cli_GameMgr_InviteRevoked*)message->netMsg;
|
||||||
return plUUID(gmMsg->gameTypeId);
|
return gmMsg->gameTypeId;
|
||||||
}
|
}
|
||||||
return kNilUuid;
|
return kNilUuid;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ void pyNotify::AddVarNumber(const char* name, float number)
|
|||||||
fBuildMsg.AddVariableEvent(name, number);
|
fBuildMsg.AddVariableEvent(name, number);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pyNotify::AddVarNumber(const char* name, int number)
|
void pyNotify::AddVarNumber(const char* name, int32_t number)
|
||||||
{
|
{
|
||||||
fBuildMsg.AddVariableEvent(name, number);
|
fBuildMsg.AddVariableEvent(name, number);
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ public:
|
|||||||
virtual void AddPickEvent(bool enabled, pyKey* other, pyKey* self, pyPoint3 hitPoint);
|
virtual void AddPickEvent(bool enabled, pyKey* other, pyKey* self, pyPoint3 hitPoint);
|
||||||
virtual void AddControlKeyEvent( int32_t key, bool down );
|
virtual void AddControlKeyEvent( int32_t key, bool down );
|
||||||
virtual void AddVarNumber(const char* name, float number);
|
virtual void AddVarNumber(const char* name, float number);
|
||||||
virtual void AddVarNumber(const char* name, int number);
|
virtual void AddVarNumber(const char* name, int32_t number);
|
||||||
virtual void AddVarNull(const char* name);
|
virtual void AddVarNull(const char* name);
|
||||||
virtual void AddVarKey(const char* name, pyKey* key);
|
virtual void AddVarKey(const char* name, pyKey* key);
|
||||||
virtual void AddFacingEvent( bool enabled, pyKey* other, pyKey* self, float dot);
|
virtual void AddFacingEvent( bool enabled, pyKey* other, pyKey* self, float dot);
|
||||||
|
@ -210,14 +210,14 @@ PYTHON_METHOD_DEFINITION(ptNotify, addVarNumber, args)
|
|||||||
if (number == NULL || number == Py_None)
|
if (number == NULL || number == Py_None)
|
||||||
self->fThis->AddVarNull(name);
|
self->fThis->AddVarNull(name);
|
||||||
else if (PyInt_Check(number))
|
else if (PyInt_Check(number))
|
||||||
self->fThis->AddVarNumber(name, (int)PyInt_AsLong(number));
|
self->fThis->AddVarNumber(name, static_cast<int32_t>(PyInt_AsLong(number)));
|
||||||
else if (PyLong_Check(number))
|
else if (PyLong_Check(number))
|
||||||
{
|
{
|
||||||
// try as int first
|
// try as int first
|
||||||
long i = PyLong_AsLong(number);
|
long i = PyLong_AsLong(number);
|
||||||
if (!PyErr_Occurred())
|
if (!PyErr_Occurred())
|
||||||
{
|
{
|
||||||
self->fThis->AddVarNumber(name, (int)i);
|
self->fThis->AddVarNumber(name, static_cast<int32_t>(i));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -93,7 +93,7 @@ plUUID pyVaultMarkerGameNode::GetGameGuid() const
|
|||||||
{
|
{
|
||||||
if (fNode) {
|
if (fNode) {
|
||||||
VaultMarkerGameNode access(fNode);
|
VaultMarkerGameNode access(fNode);
|
||||||
return plUUID(access.gameGuid);
|
return access.gameGuid;
|
||||||
}
|
}
|
||||||
return kNilUuid;
|
return kNilUuid;
|
||||||
}
|
}
|
||||||
|
@ -325,7 +325,7 @@ const char * pyVaultNode::GetCreateAgeName( void )
|
|||||||
plUUID pyVaultNode::GetCreateAgeGuid(void) const
|
plUUID pyVaultNode::GetCreateAgeGuid(void) const
|
||||||
{
|
{
|
||||||
if (fNode) {
|
if (fNode) {
|
||||||
return plUUID(fNode->createAgeUuid);
|
return fNode->createAgeUuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
return kNilUuid;
|
return kNilUuid;
|
||||||
|
@ -162,7 +162,7 @@ plUUID pyVaultPlayerInfoNode::Player_GetAgeGuid(void) const
|
|||||||
{
|
{
|
||||||
if (fNode) {
|
if (fNode) {
|
||||||
VaultPlayerInfoNode playerInfo(fNode);
|
VaultPlayerInfoNode playerInfo(fNode);
|
||||||
return plUUID(playerInfo.ageInstUuid);
|
return playerInfo.ageInstUuid;
|
||||||
}
|
}
|
||||||
return kNilUuid;
|
return kNilUuid;
|
||||||
}
|
}
|
||||||
|
@ -607,7 +607,7 @@ void plNotifyMsg::AddVariableEvent( const char* name, float number )
|
|||||||
//
|
//
|
||||||
// PURPOSE : Add a variable event record to this notify message
|
// PURPOSE : Add a variable event record to this notify message
|
||||||
//
|
//
|
||||||
void plNotifyMsg::AddVariableEvent( const char* name, int number )
|
void plNotifyMsg::AddVariableEvent( const char* name, int32_t number )
|
||||||
{
|
{
|
||||||
// create the control key event record
|
// create the control key event record
|
||||||
proVariableEventData* pED = new proVariableEventData;
|
proVariableEventData* pED = new proVariableEventData;
|
||||||
|
@ -376,7 +376,7 @@ public:
|
|||||||
void AddPickEvent( const plKey &other, const plKey& self, bool enabled, hsPoint3 hitPoint );
|
void AddPickEvent( const plKey &other, const plKey& self, bool enabled, hsPoint3 hitPoint );
|
||||||
void AddControlKeyEvent( int32_t key, bool down );
|
void AddControlKeyEvent( int32_t key, bool down );
|
||||||
void AddVariableEvent( const char* name, float number );
|
void AddVariableEvent( const char* name, float number );
|
||||||
void AddVariableEvent( const char* name, int number );
|
void AddVariableEvent( const char* name, int32_t number );
|
||||||
void AddVariableEvent( const char* name );
|
void AddVariableEvent( const char* name );
|
||||||
void AddVariableEvent( const char *name, const plKey &key );
|
void AddVariableEvent( const char *name, const plKey &key );
|
||||||
void AddFacingEvent( const plKey &other, const plKey &self, float dot, bool enabled);
|
void AddFacingEvent( const plKey &other, const plKey &self, float dot, bool enabled);
|
||||||
|
@ -67,7 +67,6 @@ struct plUUIDHelper
|
|||||||
void plUUID::Clear()
|
void plUUID::Clear()
|
||||||
{
|
{
|
||||||
uuid_t g;
|
uuid_t g;
|
||||||
//plUUIDHelper::CopyToNative( g, this );
|
|
||||||
uuid_clear( g );
|
uuid_clear( g );
|
||||||
plUUIDHelper::CopyToPlasma( this, g );
|
plUUIDHelper::CopyToPlasma( this, g );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user