mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Merge remote-tracking branch 'origin/pfPython_linux' into mingw
This commit is contained in:
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for the BlueSpiral game client
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCli.h"
|
||||
#include "../../pyKey.h"
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for BlueSpiral game messages
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCliMsg.h"
|
||||
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for the climbing wall game client
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCli.h"
|
||||
#include "../../pyKey.h"
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for ClimbingWall game messages
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCliMsg.h"
|
||||
|
||||
|
@ -49,9 +49,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// PURPOSE: Class wrapper for the Heek game client
|
||||
//
|
||||
|
||||
#include <Python.h>
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCli.h"
|
||||
#include "../../pyKey.h"
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for Heek game messages
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCliMsg.h"
|
||||
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for the Marker game client
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCli.h"
|
||||
#include "../../pyKey.h"
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for Marker game messages
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCliMsg.h"
|
||||
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for the TTT game client
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCli.h"
|
||||
#include "../../pyKey.h"
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for TTT game messages
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCliMsg.h"
|
||||
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for the VarSync game client
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCli.h"
|
||||
#include "../../pyKey.h"
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for VarSync game messages
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../../pyGlueHelpers.h"
|
||||
#include "../pyGameCliMsg.h"
|
||||
|
||||
|
@ -49,9 +49,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// PURPOSE: Class wrapper for the game client base class
|
||||
//
|
||||
|
||||
#include <Python.h>
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../pyGlueHelpers.h"
|
||||
#include "../pyKey.h"
|
||||
|
||||
|
@ -42,11 +42,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "pyGameCliMsg.h"
|
||||
#include "pyGameCli.h"
|
||||
|
||||
#include "TicTacToe\pyTTTMsg.h"
|
||||
#include "Heek\pyHeekMsg.h"
|
||||
#include "Marker\pyMarkerMsg.h"
|
||||
#include "BlueSpiral\pyBlueSpiralMsg.h"
|
||||
#include "ClimbingWall\pyClimbingWallMsg.h"
|
||||
#include "TicTacToe/pyTTTMsg.h"
|
||||
#include "Heek/pyHeekMsg.h"
|
||||
#include "Marker/pyMarkerMsg.h"
|
||||
#include "BlueSpiral/pyBlueSpiralMsg.h"
|
||||
#include "ClimbingWall/pyClimbingWallMsg.h"
|
||||
#include "VarSync/pyVarSyncMsg.h"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -239,4 +239,4 @@ unsigned long pyGameCliOwnerChangeMsg::OwnerID() const
|
||||
return gmMsg->ownerId;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for game client messages
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../pyGlueHelpers.h"
|
||||
|
||||
class pyGameCliMsg
|
||||
|
@ -49,10 +49,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// PURPOSE: Class wrapper for game manager messages
|
||||
//
|
||||
|
||||
#include <Python.h>
|
||||
#include "hsStlUtils.h"
|
||||
#include "pfGameMgr/pfGameMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "../pyGlueHelpers.h"
|
||||
|
||||
class pyGameMgrMsg
|
||||
|
@ -46,11 +46,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// PURPOSE: Class wrapper to map animation functions to plasma2 message
|
||||
//
|
||||
|
||||
#include "cyAnimation.h"
|
||||
#include "plgDispatch.h"
|
||||
#include "plMessage/plAnimCmdMsg.h"
|
||||
#include "pnMessage/plEventCallbackMsg.h"
|
||||
|
||||
#include "cyAnimation.h"
|
||||
|
||||
cyAnimation::cyAnimation()
|
||||
{
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper to map animation functions to plasma2 message
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "hsTemplates.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class cyAnimation
|
||||
|
@ -118,7 +118,8 @@ void cyAvatar::SetNetForce(hsBool state)
|
||||
|
||||
void cyAvatar::SetSenderKey(pyKey& pKey)
|
||||
{
|
||||
SetSender(pKey.getKey());
|
||||
plKey k = pKey.getKey();
|
||||
SetSender(k);
|
||||
}
|
||||
|
||||
|
||||
|
@ -48,12 +48,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper to map animation functions to plasma2 message
|
||||
//
|
||||
#include <Python.h>
|
||||
#include "hsStlUtils.h"
|
||||
#include "hsTemplates.h"
|
||||
#include "hsBitVector.h"
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -803,10 +803,10 @@ PYTHON_CLASS_NEW_IMPL(ptAvatar, cyAvatar)
|
||||
static PyObject* New(PyObject* sender, PyObject* recvr = nil)
|
||||
{
|
||||
ptAvatar* newObj = (ptAvatar*)ptAvatar_type.tp_new(&ptAvatar_type, NULL, NULL);
|
||||
pyKey* senderKey = pyKey::ConvertFrom(sender);
|
||||
pyKey* recvrKey = pyKey::ConvertFrom(recvr);
|
||||
newObj->fThis->SetSender(senderKey->getKey());
|
||||
newObj->fThis->AddRecvr(recvrKey->getKey());
|
||||
plKey senderKey = pyKey::ConvertFrom(sender)->getKey();
|
||||
plKey recvrKey = pyKey::ConvertFrom(recvr)->getKey();
|
||||
newObj->fThis->SetSender(senderKey);
|
||||
newObj->fThis->AddRecvr(recvrKey);
|
||||
newObj->fThis->SetNetForce(false);
|
||||
return (PyObject*) newObj;
|
||||
}
|
||||
|
@ -48,12 +48,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper to map camera functions to plasma2 message
|
||||
//
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
class pyKey;
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class cyCamera
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper to map draw functions to plasma2 message
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsTemplates.h"
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class cyDraw
|
||||
|
@ -97,13 +97,13 @@ PyObject *cyDraw::New(PyObject *sender, PyObject *recvr)
|
||||
ptDraw *newObj = (ptDraw*)ptDraw_type.tp_new(&ptDraw_type, NULL, NULL);
|
||||
if (sender != NULL)
|
||||
{
|
||||
pyKey *senderKey = pyKey::ConvertFrom(sender);
|
||||
newObj->fThis->SetSender(senderKey->getKey());
|
||||
plKey senderKey = pyKey::ConvertFrom(sender)->getKey();
|
||||
newObj->fThis->SetSender(senderKey);
|
||||
}
|
||||
if (recvr != NULL)
|
||||
{
|
||||
pyKey *recvrKey = pyKey::ConvertFrom(recvr);
|
||||
newObj->fThis->AddRecvr(recvrKey->getKey());
|
||||
plKey recvrKey = pyKey::ConvertFrom(recvr)->getKey();
|
||||
newObj->fThis->AddRecvr(recvrKey);
|
||||
}
|
||||
newObj->fThis->fNetForce = false;
|
||||
|
||||
@ -122,4 +122,4 @@ void cyDraw::AddPlasmaClasses(PyObject *m)
|
||||
PYTHON_CLASS_IMPORT_START(m);
|
||||
PYTHON_CLASS_IMPORT(m, ptDraw);
|
||||
PYTHON_CLASS_IMPORT_END(m);
|
||||
}
|
||||
}
|
||||
|
@ -39,10 +39,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "HeadSpin.h"
|
||||
#include "cyInputInterface.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "cyInputInterface.h"
|
||||
#include "HeadSpin.h"
|
||||
|
||||
// glue functions
|
||||
PYTHON_CLASS_DEFINITION(ptInputInterface, cyInputInterface);
|
||||
@ -80,4 +79,4 @@ void cyInputInterface::AddPlasmaClasses(PyObject *m)
|
||||
PYTHON_CLASS_IMPORT_START(m);
|
||||
PYTHON_CLASS_IMPORT(m, ptInputInterface);
|
||||
PYTHON_CLASS_IMPORT_END(m);
|
||||
}
|
||||
}
|
||||
|
@ -1319,7 +1319,8 @@ void cyMisc::SetPrivateChatList(const std::vector<pyPlayer*> & tolist)
|
||||
for (int i=0 ; i<tolist.size() ; i++ )
|
||||
pMsg->GetClientList()->Append(tolist[i]->GetPlayerID());
|
||||
|
||||
pMsg->SetRemovedKey(plNetClientMgr::GetInstance()->GetLocalPlayerKey());
|
||||
plKey k = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||
pMsg->SetRemovedKey(k);
|
||||
pMsg->Send();
|
||||
}
|
||||
}
|
||||
@ -1336,7 +1337,8 @@ void cyMisc::SetPrivateChatList(const std::vector<pyPlayer*> & tolist)
|
||||
void cyMisc::ClearPrivateChatList(pyKey& member)
|
||||
{
|
||||
plNetVoiceListMsg* pMsg = new plNetVoiceListMsg(plNetVoiceListMsg::kDistanceMode);
|
||||
pMsg->SetRemovedKey( member.getKey() );
|
||||
plKey k = member.getKey();
|
||||
pMsg->SetRemovedKey(k);
|
||||
pMsg->Send();
|
||||
}
|
||||
|
||||
@ -1550,7 +1552,7 @@ void cyMisc::EnableAvatarCursorFade()
|
||||
plIfaceFadeAvatarMsg* iMsg = new plIfaceFadeAvatarMsg;
|
||||
iMsg->SetSubjectKey(nmgr->GetLocalPlayerKey());
|
||||
iMsg->SetBCastFlag(plMessage::kBCastByExactType);
|
||||
iMsg->SetBCastFlag(plMessage::kNetPropagate, FALSE);
|
||||
iMsg->SetBCastFlag(plMessage::kNetPropagate, false);
|
||||
iMsg->Enable();
|
||||
iMsg->Send();
|
||||
}
|
||||
@ -1564,7 +1566,7 @@ void cyMisc::DisableAvatarCursorFade()
|
||||
plIfaceFadeAvatarMsg* iMsg = new plIfaceFadeAvatarMsg;
|
||||
iMsg->SetSubjectKey(nmgr->GetLocalPlayerKey());
|
||||
iMsg->SetBCastFlag(plMessage::kBCastByExactType);
|
||||
iMsg->SetBCastFlag(plMessage::kNetPropagate, FALSE);
|
||||
iMsg->SetBCastFlag(plMessage::kNetPropagate, false);
|
||||
iMsg->Disable();
|
||||
iMsg->Send();
|
||||
}
|
||||
@ -1579,7 +1581,7 @@ void cyMisc::FadeLocalPlayer(hsBool fade)
|
||||
pMsg->SetFadeOut(fade);
|
||||
pMsg->SetSubjectKey(nmgr->GetLocalPlayerKey());
|
||||
pMsg->SetBCastFlag(plMessage::kBCastByExactType);
|
||||
pMsg->SetBCastFlag(plMessage::kNetPropagate, FALSE);
|
||||
pMsg->SetBCastFlag(plMessage::kNetPropagate, false);
|
||||
pMsg->AddReceiver(nmgr->GetLocalPlayerKey());
|
||||
plgDispatch::MsgSend(pMsg);
|
||||
}
|
||||
@ -1661,7 +1663,8 @@ void cyMisc::ToggleAvatarClickability(hsBool on)
|
||||
pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kGUIEnableAvatarClickable);
|
||||
else
|
||||
pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kGUIDisableAvatarClickable);
|
||||
pMsg->SetAvKey(plNetClientMgr::GetInstance()->GetLocalPlayerKey());
|
||||
plKey k = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||
pMsg->SetAvKey(k);
|
||||
pMsg->SetBCastFlag(plMessage::kNetPropagate);
|
||||
pMsg->SetBCastFlag(plMessage::kNetForce);
|
||||
pMsg->Send();
|
||||
@ -1671,7 +1674,8 @@ void cyMisc::ToggleAvatarClickability(hsBool on)
|
||||
void cyMisc::SetShareSpawnPoint(const char* spawnPoint)
|
||||
{
|
||||
plInputIfaceMgrMsg* pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kSetShareSpawnPoint);
|
||||
pMsg->SetSender(plNetClientMgr::GetInstance()->GetLocalPlayerKey());
|
||||
plKey k = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||
pMsg->SetSender(k);
|
||||
pMsg->SetSpawnPoint(spawnPoint);
|
||||
pMsg->Send();
|
||||
}
|
||||
@ -1679,7 +1683,8 @@ void cyMisc::SetShareSpawnPoint(const char* spawnPoint)
|
||||
void cyMisc::SetShareAgeInstanceGuid(const Uuid& guid)
|
||||
{
|
||||
plInputIfaceMgrMsg* pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kSetShareAgeInstanceGuid);
|
||||
pMsg->SetSender(plNetClientMgr::GetInstance()->GetLocalPlayerKey());
|
||||
plKey k = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||
pMsg->SetSender(k);
|
||||
pMsg->SetAgeInstanceGuid(guid);
|
||||
pMsg->Send();
|
||||
}
|
||||
@ -2427,7 +2432,7 @@ int cyMisc::GetKILevel()
|
||||
StrToUnicode(wStr, pfKIMsg::kChronicleKILevel, arrsize(wStr));
|
||||
if (RelVaultNode * rvn = VaultFindChronicleEntryIncRef(wStr)) {
|
||||
VaultChronicleNode chron(rvn);
|
||||
result = _wtoi(chron.entryValue);
|
||||
result = wcstol(chron.entryValue, nil, 0);
|
||||
rvn->DecRef();
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include <Python.h>
|
||||
#include "cyMisc.h"
|
||||
#include "pyGlueHelpers.h"
|
||||
#include "pyKey.h"
|
||||
@ -47,11 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "pyEnum.h"
|
||||
|
||||
// for enums
|
||||
#include "plNetCommon\plNetCommon.h"
|
||||
#include "plResMgr\plLocalization.h"
|
||||
#include "plMessage\plLOSRequestMsg.h"
|
||||
#include "plNetCommon/plNetCommon.h"
|
||||
#include "plResMgr/plLocalization.h"
|
||||
#include "plMessage/plLOSRequestMsg.h"
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
PYTHON_GLOBAL_METHOD_DEFINITION(PtYesNoDialog, args, "Params: selfkey,dialogMessage\nThis will display a Yes/No dialog to the user with the text dialogMessage\n"
|
||||
"This dialog _has_ to be answered by the user.\n"
|
||||
|
@ -48,12 +48,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper to for Particle System
|
||||
//
|
||||
#include <Python.h>
|
||||
#include "hsTemplates.h"
|
||||
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
class pyKey;
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class cyParticleSys
|
||||
|
@ -120,13 +120,13 @@ PyObject *cyParticleSys::New(PyObject *sender, PyObject *recvr)
|
||||
ptParticle *newObj = (ptParticle*)ptParticle_type.tp_new(&ptParticle_type, NULL, NULL);
|
||||
if (sender != NULL)
|
||||
{
|
||||
pyKey *senderKey = pyKey::ConvertFrom(sender);
|
||||
newObj->fThis->SetSender(senderKey->getKey());
|
||||
plKey senderKey = pyKey::ConvertFrom(sender)->getKey();
|
||||
newObj->fThis->SetSender(senderKey);
|
||||
}
|
||||
if (recvr != NULL)
|
||||
{
|
||||
pyKey *recvrKey = pyKey::ConvertFrom(recvr);
|
||||
newObj->fThis->AddRecvr(recvrKey->getKey());
|
||||
plKey recvrKey = pyKey::ConvertFrom(recvr)->getKey();
|
||||
newObj->fThis->AddRecvr(recvrKey);
|
||||
}
|
||||
newObj->fThis->SetNetForce(false);
|
||||
return (PyObject*)newObj;
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper to map animation functions to plasma2 message
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsTemplates.h"
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyPoint3;
|
||||
|
@ -396,13 +396,13 @@ PyObject *cyPhysics::New(PyObject *sender, PyObject *recvr)
|
||||
ptPhysics *newObj = (ptPhysics*)ptPhysics_type.tp_new(&ptPhysics_type, NULL, NULL);
|
||||
if (sender != NULL)
|
||||
{
|
||||
pyKey *senderKey = pyKey::ConvertFrom(sender);
|
||||
newObj->fThis->SetSender(senderKey->getKey());
|
||||
plKey senderKey = pyKey::ConvertFrom(sender)->getKey();
|
||||
newObj->fThis->SetSender(senderKey);
|
||||
}
|
||||
if (recvr != NULL)
|
||||
{
|
||||
pyKey *recvrKey = pyKey::ConvertFrom(recvr);
|
||||
newObj->fThis->AddRecvr(recvrKey->getKey());
|
||||
plKey recvrKey = pyKey::ConvertFrom(recvr)->getKey();
|
||||
newObj->fThis->AddRecvr(recvrKey);
|
||||
}
|
||||
newObj->fThis->SetNetForce(false);
|
||||
return (PyObject*)newObj;
|
||||
@ -420,4 +420,4 @@ void cyPhysics::AddPlasmaClasses(PyObject *m)
|
||||
PYTHON_CLASS_IMPORT_START(m);
|
||||
PYTHON_CLASS_IMPORT(m, ptPhysics);
|
||||
PYTHON_CLASS_IMPORT_END(m);
|
||||
}
|
||||
}
|
||||
|
@ -46,9 +46,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// NOTE: Eventually, this will be made into a separate dll, because there should
|
||||
// only be one instance of this interface.
|
||||
//
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include <Python.h>
|
||||
|
||||
#if defined(HAVE_CYPYTHONIDE) && !defined(PLASMA_EXTERNAL_RELEASE)
|
||||
#include "../../Apps/CyPythonIDE/plCyDebug/plCyDebServer.h"
|
||||
|
@ -46,6 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// This modifier will handle the interface to python code that has been file-ized.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#include "plPythonFileMod.h"
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStream.h"
|
||||
@ -97,7 +98,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include "plProfile.h"
|
||||
|
||||
#include "plPythonFileMod.h"
|
||||
#include "cyPythonInterface.h"
|
||||
#include "pyKey.h"
|
||||
#include "cyDraw.h"
|
||||
|
@ -49,12 +49,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// This modifier will handle the interface to python code that has been file-ized.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pnModifier/plMultiModifier.h"
|
||||
#include "hsGeometry3.h"
|
||||
#include "hsResMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#include "plPythonParameter.h"
|
||||
|
||||
|
@ -39,9 +39,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "plPythonPack.h"
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include "plPythonPack.h"
|
||||
#include "hsStream.h"
|
||||
#include "plFile/hsFiles.h"
|
||||
#include "plFile/plSecureStream.h"
|
||||
|
@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef plPythonPack_h_inc
|
||||
#define plPythonPack_h_inc
|
||||
|
||||
#include "Python.h"
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
|
||||
namespace PythonPack
|
||||
|
@ -39,7 +39,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "HeadSpin.h"
|
||||
#include "plPythonSDLModifier.h"
|
||||
#include "cyPythonInterface.h"
|
||||
|
||||
|
@ -46,10 +46,12 @@ class plPythonFileMod;
|
||||
class plStateDataRecord;
|
||||
class plSimpleStateVariable;
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include "plModifier/plSDLModifier.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -39,9 +39,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include "pyAgeInfoStruct.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include "pnUtils/pnUtCrypt.h"
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -133,8 +134,10 @@ void pyAgeInfoStruct::SetAgeInstanceGuid( const char * guid )
|
||||
CryptDigest(kCryptMd5, instanceGuid.fData , y.length(), y.c_str());
|
||||
fAgeInfo.SetAgeInstanceGuid(&instanceGuid);
|
||||
}
|
||||
else
|
||||
fAgeInfo.SetAgeInstanceGuid( &plUUID( guid ) );
|
||||
else {
|
||||
plUUID temp(guid);
|
||||
fAgeInfo.SetAgeInstanceGuid( &temp );
|
||||
}
|
||||
}
|
||||
|
||||
int32_t pyAgeInfoStruct::GetAgeSequenceNumber() const
|
||||
@ -220,7 +223,8 @@ const char * pyAgeInfoStructRef::GetAgeInstanceGuid() const
|
||||
|
||||
void pyAgeInfoStructRef::SetAgeInstanceGuid( const char * guid )
|
||||
{
|
||||
fAgeInfo.SetAgeInstanceGuid( &plUUID( guid ) );
|
||||
plUUID tmp(guid);
|
||||
fAgeInfo.SetAgeInstanceGuid( &tmp );
|
||||
}
|
||||
|
||||
int32_t pyAgeInfoStructRef::GetAgeSequenceNumber() const
|
||||
|
@ -41,12 +41,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
#ifndef pyAgeInfoStruct_h_inc
|
||||
#define pyAgeInfoStruct_h_inc
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include "plNetCommon/plNetServerSessionInfo.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -39,9 +39,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "pyAgeLinkStruct.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include "pyAgeLinkStruct.h"
|
||||
#include "pySpawnPointInfo.h"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
@ -42,12 +42,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef pyAgeLinkStruct_h_inc
|
||||
#define pyAgeLinkStruct_h_inc
|
||||
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include "plNetCommon/plNetServerSessionInfo.h"
|
||||
#include "pyAgeInfoStruct.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -51,11 +51,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyAgeVault - a wrapper class to provide interface to the plVaultAgeNode
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyVaultNode;
|
||||
|
@ -42,9 +42,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef pyAlarm_h_inc
|
||||
#define pyAlarm_h_inc
|
||||
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include <Python.h>
|
||||
|
||||
struct pyAlarm;
|
||||
class pyAlarmMgr
|
||||
|
@ -48,9 +48,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyAudioControl
|
||||
|
@ -39,7 +39,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include <Python.h>
|
||||
#include "pyCCRMgr.h"
|
||||
#include "pyAgeLinkStruct.h"
|
||||
|
||||
#include <Python.h>
|
||||
|
@ -39,6 +39,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include <Python.h>
|
||||
#include "pyCCRMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
|
@ -42,9 +42,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef pyCluster_h
|
||||
#define pyCluster_h
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
@ -79,4 +79,4 @@ public:
|
||||
};
|
||||
|
||||
|
||||
#endif // pyCluster_h
|
||||
#endif // pyCluster_h
|
||||
|
@ -47,10 +47,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyColor - the wrapper class for hsColorRGBA structure
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsColorRGBA.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyColor
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "hsGeometry3.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class plDniCoordinateInfo;
|
||||
|
@ -39,11 +39,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "pyDniInfoSource.h"
|
||||
#include "pnUtils/pnUtils.h"
|
||||
#include "plUnifiedTime/plUnifiedTime.h"
|
||||
#include "plVault/plAgeInfoSource.h"
|
||||
#include "plVault/plVault.h"
|
||||
#include "pyDniInfoSource.h"
|
||||
#include "pyDniCoordinates.h"
|
||||
|
||||
pyDniInfoSource::pyDniInfoSource()
|
||||
|
@ -41,12 +41,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
#ifndef pyDniInfoSource_h_inc
|
||||
#define pyDniInfoSource_h_inc
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyDniCoordinates;
|
||||
|
@ -47,12 +47,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyDrawControl - a wrapper class all the draw/pipeline control functions
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyDrawControl
|
||||
|
@ -46,6 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "pyDynamicText.h"
|
||||
#include "plgDispatch.h"
|
||||
#include "plMessage/plDynamicTextMsg.h"
|
||||
#include "pyKey.h"
|
||||
@ -54,7 +55,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "pyImage.h"
|
||||
#include "plGImage/plDynamicTextMap.h"
|
||||
|
||||
#include "pyDynamicText.h"
|
||||
|
||||
pyDynamicText::pyDynamicText()
|
||||
{
|
||||
@ -154,7 +154,8 @@ void pyDynamicText::ClearToColor( pyColor& color )
|
||||
plDynamicTextMsg* pMsg = ICreateDTMsg();
|
||||
if ( pMsg )
|
||||
{
|
||||
pMsg->ClearToColor(color.getColor());
|
||||
hsColorRGBA col = color.getColor();
|
||||
pMsg->ClearToColor(col);
|
||||
|
||||
plgDispatch::MsgSend( pMsg ); // whoosh... off it goes
|
||||
}
|
||||
@ -193,7 +194,8 @@ void pyDynamicText::SetTextColor2( pyColor& color, bool blockRGB )
|
||||
plDynamicTextMsg* pMsg = ICreateDTMsg();
|
||||
if ( pMsg )
|
||||
{
|
||||
pMsg->SetTextColor(color.getColor(),blockRGB);
|
||||
hsColorRGBA col = color.getColor();
|
||||
pMsg->SetTextColor(col,blockRGB);
|
||||
plgDispatch::MsgSend( pMsg ); // whoosh... off it goes
|
||||
}
|
||||
}
|
||||
@ -215,7 +217,8 @@ void pyDynamicText::FillRect( uint16_t left, uint16_t top, uint16_t right, uint1
|
||||
plDynamicTextMsg* pMsg = ICreateDTMsg();
|
||||
if ( pMsg )
|
||||
{
|
||||
pMsg->FillRect(left,top,right,bottom,color.getColor());
|
||||
hsColorRGBA col = color.getColor();
|
||||
pMsg->FillRect(left,top,right,bottom,col);
|
||||
plgDispatch::MsgSend( pMsg ); // whoosh... off it goes
|
||||
}
|
||||
}
|
||||
@ -226,7 +229,8 @@ void pyDynamicText::FrameRect( uint16_t left, uint16_t top, uint16_t right, uint
|
||||
plDynamicTextMsg* pMsg = ICreateDTMsg();
|
||||
if ( pMsg )
|
||||
{
|
||||
pMsg->FrameRect(left,top,right,bottom,color.getColor());
|
||||
hsColorRGBA col = color.getColor();
|
||||
pMsg->FrameRect(left,top,right,bottom,col);
|
||||
plgDispatch::MsgSend( pMsg ); // whoosh... off it goes
|
||||
}
|
||||
}
|
||||
@ -311,7 +315,8 @@ void pyDynamicText::DrawImage( uint16_t x, uint16_t y, pyImage& image, hsBool re
|
||||
plDynamicTextMsg* pMsg = ICreateDTMsg();
|
||||
if ( pMsg )
|
||||
{
|
||||
pMsg->DrawImage( x, y, image.GetKey(), respectAlpha);
|
||||
plKey k = image.GetKey();
|
||||
pMsg->DrawImage( x, y, k, respectAlpha);
|
||||
plgDispatch::MsgSend( pMsg ); // whoosh... off it goes
|
||||
}
|
||||
}
|
||||
@ -326,7 +331,8 @@ void pyDynamicText::DrawImageClipped( uint16_t x, uint16_t y, pyImage& image, ui
|
||||
plDynamicTextMsg* pMsg = ICreateDTMsg();
|
||||
if ( pMsg )
|
||||
{
|
||||
pMsg->DrawClippedImage( x, y, image.GetKey(), cx, cy, cw, ch, respectAlpha);
|
||||
plKey k = image.GetKey();
|
||||
pMsg->DrawClippedImage( x, y, k, cx, cy, cw, ch, respectAlpha);
|
||||
plgDispatch::MsgSend( pMsg ); // whoosh... off it goes
|
||||
}
|
||||
}
|
||||
|
@ -53,10 +53,11 @@ class pyKey;
|
||||
class pyColor;
|
||||
class pyImage;
|
||||
|
||||
#include <Python.h>
|
||||
#include "hsTemplates.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include "hsResMgr.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -43,12 +43,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////////
|
||||
#include "pyGUIControl.h"
|
||||
|
||||
#include "pfGameGUIMgr/pfGUIControlMod.h"
|
||||
#include "pfGameGUIMgr/pfGUIDialogMod.h"
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyGUIControl.h"
|
||||
#include "pyGUIDialog.h"
|
||||
#include "pyColor.h"
|
||||
|
||||
|
@ -49,10 +49,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyKey.h"
|
||||
#include "pyGeometry3.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyGUIDialog;
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControlButton
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyGeometry3.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyGUIControl.h"
|
||||
|
@ -49,9 +49,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyGUIControl.h"
|
||||
|
@ -49,9 +49,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyGUIControl.h"
|
||||
|
@ -49,9 +49,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyGUIControl.h"
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControlDraggable
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyGUIControl.h"
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControlDynamicText
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyGUIControl.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyDynamicText;
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControlEditBox
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsStlUtils.h"
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyGUIControl.h"
|
||||
|
@ -250,7 +250,7 @@ class pfColorListElement : public pfGUIListText
|
||||
{
|
||||
size_t length = wcslen( fString1 ) + wcslen( fString2 ) + 3;
|
||||
thestring = new wchar_t[ length ];
|
||||
snwprintf( thestring, length, L"%s %s", fString1, fString2 );
|
||||
hsSnwprintf( thestring, length, L"%s %s", fString1, fString2 );
|
||||
wemade_string = true;
|
||||
}
|
||||
else if (fString1)
|
||||
|
@ -48,6 +48,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControl (such as Button, ListBox, etc.)
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsTemplates.h"
|
||||
|
||||
@ -55,7 +56,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "pyKey.h"
|
||||
#include "pyGUIControl.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -182,7 +182,7 @@ void pyGUIControlMultiLineEdit::SetEncodedBuffer( PyObject* buffer_object )
|
||||
{
|
||||
// something to do here... later
|
||||
uint8_t* daBuffer = nil;
|
||||
int length;
|
||||
ssize_t length;
|
||||
PyObject_AsReadBuffer( buffer_object, (const void**)&daBuffer, &length);
|
||||
if ( daBuffer != nil )
|
||||
{
|
||||
@ -218,7 +218,7 @@ void pyGUIControlMultiLineEdit::SetEncodedBufferW( PyObject* buffer_object )
|
||||
{
|
||||
// something to do here... later
|
||||
uint16_t* daBuffer = nil;
|
||||
int length;
|
||||
ssize_t length;
|
||||
PyObject_AsReadBuffer( buffer_object, (const void**)&daBuffer, &length);
|
||||
if ( daBuffer != nil )
|
||||
{
|
||||
@ -392,7 +392,8 @@ void pyGUIControlMultiLineEdit::InsertColor( pyColor& color )
|
||||
pfGUIMultiLineEditCtrl* pbmod = pfGUIMultiLineEditCtrl::ConvertNoRef(fGCkey->ObjectIsLoaded());
|
||||
if ( pbmod )
|
||||
{
|
||||
pbmod->InsertColor(color.getColor());
|
||||
hsColorRGBA col = color.getColor();
|
||||
pbmod->InsertColor(col);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControlMultiLineEdit
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyGUIControl.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyColor;
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControlRadioGroup
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyGUIControl.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyGUIControlRadioGroup :public pyGUIControl
|
||||
|
@ -48,12 +48,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a GUIControlTextBox
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyGUIControl.h"
|
||||
#include "pfGameGUIMgr/pfGUIControlMod.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyColor;
|
||||
|
@ -49,10 +49,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "hsStlUtils.h"
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -378,4 +378,4 @@ void pyGUIDialog::AddPlasmaMethods(std::vector<PyMethodDef> &methods)
|
||||
PYTHON_BASIC_GLOBAL_METHOD(methods, PtGUICursorOff);
|
||||
PYTHON_BASIC_GLOBAL_METHOD(methods, PtGUICursorOn);
|
||||
PYTHON_BASIC_GLOBAL_METHOD(methods, PtGUICursorDimmed);
|
||||
}
|
||||
}
|
||||
|
@ -49,11 +49,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "pfGameGUIMgr/pfGUIPopUpMenu.h"
|
||||
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyColor;
|
||||
|
@ -49,10 +49,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// PURPOSE: a wrapper class to provide access to a game score
|
||||
//
|
||||
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
struct pfGameScore;
|
||||
@ -87,4 +87,4 @@ public:
|
||||
bool SetPoints(int numPoints);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -47,10 +47,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyGeometry3 - the wrapper class for hsPoint3 and hsVector3
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsGeometry3.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyPoint3
|
||||
|
@ -42,11 +42,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef pyGrassShader_h
|
||||
#define pyGrassShader_h
|
||||
|
||||
#include <Python.h>
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -49,6 +49,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// PURPOSE: Class wrapper for Python to a plMipMap image
|
||||
//
|
||||
|
||||
#include <Python.h>
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include "pyKey.h"
|
||||
@ -59,7 +60,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "plGImage/plMipmap.h"
|
||||
#endif
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class plKey;
|
||||
|
@ -48,12 +48,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "hsStlUtils.h"
|
||||
#include "pyKey.h"
|
||||
#include "pyGeometry3.h"
|
||||
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyImage;
|
||||
|
@ -47,10 +47,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyKey - the wrapper class around a plKey so that Python can handle it
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class plPythonFileMod;
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "pnInputCore/plKeyMap.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyKeyMap
|
||||
|
@ -47,10 +47,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyMarkerMgr - a wrapper class to provide interface to the pfMarkerMgr stuff
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyMarkerMgr
|
||||
|
@ -41,13 +41,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
#ifndef pyMatrix44_h_inc
|
||||
#define pyMatrix44_h_inc
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include "hsMatrix44.h"
|
||||
#include "pyGeometry3.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -47,11 +47,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyMoviePlayer - a wrapper class all the movie player functions
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyColor.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyMoviePlayer
|
||||
|
@ -44,9 +44,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
# error "pyNetLinkingMgr is not compatible with pyPlasma.pyd. Use BUILDING_PYPLASMA macro to ifdef out unwanted headers."
|
||||
#endif
|
||||
|
||||
#include "pyNetLinkingMgr.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include "pyNetLinkingMgr.h"
|
||||
#include "plNetClient/plNetLinkingMgr.h"
|
||||
#include "plAvatar/plAvatarMgr.h"
|
||||
#include "plAvatar/plArmatureMod.h"
|
||||
|
@ -41,11 +41,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
#ifndef pyNetLinkingMgr_h_inc
|
||||
#define pyNetLinkingMgr_h_inc
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -41,12 +41,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
#ifndef pyNetServerSessionInfo_h_inc
|
||||
#define pyNetServerSessionInfo_h_inc
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "plNetCommon/plNetServerSessionInfo.h"
|
||||
#include "pnUUID/pnUUID.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -44,6 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyNotify - a wrapper class to provide interface to send a NotifyMsg
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include "pyNotify.h"
|
||||
|
||||
#include "plgDispatch.h"
|
||||
#include "pnMessage/plNotifyMsg.h"
|
||||
@ -51,7 +52,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "plPythonFileMod.h"
|
||||
#include "pyGeometry3.h"
|
||||
|
||||
#include "pyNotify.h"
|
||||
|
||||
pyNotify::pyNotify()
|
||||
{
|
||||
|
@ -48,12 +48,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <Python.h>
|
||||
#include "pnMessage/plNotifyMsg.h"
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "pyGeometry3.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pyNotify
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: Class wrapper for Python to the player data
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "hsStlUtils.h"
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class plKey;
|
||||
|
@ -47,11 +47,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pySDL - python subset of the plSDL library.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class plStateDataRecord;
|
||||
|
@ -39,8 +39,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include "HeadSpin.h" // TEMP, for STL warnings
|
||||
#include "pySceneObject.h"
|
||||
#include "HeadSpin.h" // TEMP, for STL warnings
|
||||
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
#include "cyAvatar.h"
|
||||
|
@ -48,6 +48,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// attached to a SceneObject
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyKey.h"
|
||||
#include "cyDraw.h"
|
||||
@ -57,7 +58,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -48,11 +48,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// PURPOSE: a wrapper class to provide an interface to the scoring system
|
||||
//
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
@ -112,4 +112,4 @@ public:
|
||||
);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -41,12 +41,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
#ifndef pySpawnPointInfo_h_inc
|
||||
#define pySpawnPointInfo_h_inc
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
#include "plNetCommon/plSpawnPointInfo.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -48,10 +48,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
//
|
||||
// and interface to the ChatLog (ptChatStatusLog)
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyColor.h"
|
||||
|
@ -47,11 +47,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyStream - a wrapper class to provide interface to the File stream stuff
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
|
||||
|
@ -42,9 +42,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef pySwimCurrentInterface_h
|
||||
#define pySwimCurrentInterface_h
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyKey.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class pySwimCurrentInterface
|
||||
@ -88,4 +88,4 @@ public:
|
||||
void disable();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -575,7 +575,8 @@ void pyVault::UnRegisterVisitAge( const char * guidstr )
|
||||
Uuid uuid;
|
||||
GuidFromString(guidstr, &uuid);
|
||||
plAgeInfoStruct info;
|
||||
info.SetAgeInstanceGuid(&plUUID(uuid));
|
||||
plUUID guid(uuid);
|
||||
info.SetAgeInstanceGuid(&guid);
|
||||
VaultUnregisterVisitAgeAndWait(&info);
|
||||
}
|
||||
|
||||
@ -583,7 +584,7 @@ void pyVault::UnRegisterVisitAge( const char * guidstr )
|
||||
void _InvitePlayerToAge(ENetError result, void* state, void* param, RelVaultNode* node)
|
||||
{
|
||||
if (result == kNetSuccess)
|
||||
VaultSendNode(node, (uint32_t)param);
|
||||
VaultSendNode(node, (uint32_t)((uintptr_t)param));
|
||||
}
|
||||
|
||||
void pyVault::InvitePlayerToAge( const pyAgeLinkStruct & link, uint32_t playerID )
|
||||
@ -602,13 +603,14 @@ void pyVault::InvitePlayerToAge( const pyAgeLinkStruct & link, uint32_t playerID
|
||||
void _UninvitePlayerToAge(ENetError result, void* state, void* param, RelVaultNode* node)
|
||||
{
|
||||
if (result == kNetSuccess)
|
||||
VaultSendNode(node, (uint32_t)param);
|
||||
VaultSendNode(node, (uint32_t)((uintptr_t)param));
|
||||
}
|
||||
|
||||
void pyVault::UnInvitePlayerToAge( const char * str, uint32_t playerID )
|
||||
{
|
||||
plAgeInfoStruct info;
|
||||
info.SetAgeInstanceGuid(&plUUID(str));
|
||||
plUUID guid(str);
|
||||
info.SetAgeInstanceGuid(&guid);
|
||||
|
||||
if (RelVaultNode * rvnLink = VaultGetOwnedAgeLinkIncRef(&info)) {
|
||||
if (RelVaultNode * rvnInfo = rvnLink->GetChildNodeIncRef(plVault::kNodeType_AgeInfo, 1)) {
|
||||
@ -667,7 +669,8 @@ void pyVault::CreateNeighborhood()
|
||||
xtl::format( desc, "%s's %s", nc->GetPlayerName(), link.GetAgeInfo()->GetAgeInstanceName() );
|
||||
}
|
||||
|
||||
link.GetAgeInfo()->SetAgeInstanceGuid(&plUUID(GuidGenerate()));
|
||||
plUUID guid(GuidGenerate());
|
||||
link.GetAgeInfo()->SetAgeInstanceGuid(&guid);
|
||||
link.GetAgeInfo()->SetAgeUserDefinedName( title.c_str() );
|
||||
link.GetAgeInfo()->SetAgeDescription( desc.c_str() );
|
||||
|
||||
|
@ -47,10 +47,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyVault - a wrapper class to provide interface to the plVault and the RelVaultNode
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
class plKey;
|
||||
|
@ -47,11 +47,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
// pyVaultAgeInfoListNode - a wrapper class to provide interface to the RelVaultNode
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <Python.h>
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include <Python.h>
|
||||
#include "pyGlueHelpers.h"
|
||||
|
||||
#include "pyVaultFolderNode.h"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user