135 _log( POS__DUMP,
"PosMgr bind request for:" );
136 bind_args->
Dump( POS__DUMP,
" " );
138 if (!bind_args->
IsInt()){
139 sLog.Error(
"PosMgr::CreateBoundObject",
"%s: bind_args is not int: '%s'. ", pClient->
GetName(), bind_args->
TypeString() );
190 _log(POS__TRACE,
"PosMgr::Handle_GetControlTowers()");
191 call.
Dump(POS__DUMP);
233 list->
Dump(POS__RSP_DUMP,
" ");
251 _log(POS__TRACE,
"PosMgrBound::Handle_InstallJumpBridgeLink()");
252 call.
Dump(POS__DUMP);
254 InstallJumpBridgeLink
args;
255 if (!args.Decode(&call.
tuple)) {
256 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
272 _log(POS__TRACE,
"PosMgrBound::Handle_UninstallJumpBridgeLink()");
273 call.
Dump(POS__DUMP);
275 Call_SingleIntegerArg arg;
276 if (!arg.Decode(&call.
tuple)) {
277 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
287 _log(POS__TRACE,
"PosMgrBound::Handle_GetSiloCapacityByItemID()");
288 call.
Dump(POS__DUMP);
302 _log(POS__TRACE,
"PosMgrBound::Handle_GetTowerNotificationSettings()");
303 call.
Dump(POS__DUMP);
312 if (pSystem ==
nullptr) {
314 return new PyObject(
"util.Row", dict);
317 Call_SingleIntegerArg arg;
318 if (!arg.Decode(&call.
tuple)) {
319 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
320 return new PyObject(
"util.Row", dict);
325 return new PyObject(
"util.Row", dict);
332 return new PyObject(
"util.Row", dict);
339 if (pSystem ==
nullptr) {
344 SetTowerNotification
args;
345 if (!args.Decode(&call.
tuple)) {
346 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
372 if (pSystem ==
nullptr) {
374 return new PyObject(
"util.Row", data);
377 Call_SingleIntegerArg arg;
378 if (!arg.Decode(&call.
tuple)) {
379 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
380 return new PyObject(
"util.Row", data);
385 return new PyObject(
"util.Row", data);
395 return new PyObject(
"util.Row", data);
401 if (pSystem ==
nullptr) {
406 SetTowerSentrySettings
args;
407 if (!args.Decode(&call.
tuple)) {
408 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
429 if (pSystem ==
nullptr) {
434 Call_SingleIntegerArg arg;
435 if (!arg.Decode(&call.
tuple)) {
436 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
459 _log(POS__TRACE,
"PosMgrBound::Handle_SetStarbasePermissions()");
460 call.
Dump(POS__DUMP);
463 if (pSystem ==
nullptr) {
468 SetStarbasePermissions
args;
469 if (!args.Decode(&call.
tuple)) {
470 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
481 codelog(POS__ERROR,
"deployFlags 'line' item is not PyList: %s", rep->
TypeString());
496 codelog(POS__ERROR,
"usageFlagsList 'lines' item is not PyList: %s", rep2->
TypeString());
503 if (!(*itr)->IsList()) {
504 codelog(POS__ERROR,
"usageFlagsList - itr item is not PyList: %s", (*itr)->TypeString());
507 pTSE->
SetUseFlags((*itr)->AsList()->GetItem(0)->AsInt()->value(),
508 (*itr)->AsList()->GetItem(1)->AsInt()->value(),
509 (*itr)->AsList()->GetItem(2)->AsInt()->value(),
510 (*itr)->AsList()->GetItem(3)->AsInt()->value());
539 if (pSystem ==
nullptr) {
544 Call_SingleIntegerArg arg;
545 if (!arg.Decode(&call.
tuple)) {
546 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
557 std::map<uint16, uint8>::iterator itr = pMSE->
GooBegin(), end = pMSE->
GooEnd();
588 if (pSystem ==
nullptr) {
594 SetTowerPassword2
args;
595 if (!args.Decode(&call.
tuple)) {
596 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
604 if (args.password->IsString() or args.password->IsWString())
608 SetTowerPassword4
args;
609 if (!args.Decode(&call.
tuple)) {
610 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
618 if (args.password->IsString() or args.password->IsWString()) {
640 _log(POS__TRACE,
"PosMgrBound::Handle_UnanchorStructure()");
641 call.
Dump(POS__DUMP);
651 _log(POS__TRACE,
"POS Mgr::Anchor()");
652 call.
Dump(POS__DUMP);
654 if (pSystem ==
nullptr) {
659 AnchorStructure
args;
660 if (!args.Decode(&call.
tuple)) {
661 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
669 GPoint pos(args.posX, args.posY, args.posZ);
686 if (pSystem ==
nullptr) {
691 Call_SingleIntegerArg arg;
692 if (!arg.Decode(&call.
tuple)) {
693 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
719 _log(POS__TRACE,
"PosMgrBound::Handle_AssumeStructureControl()");
720 call.
Dump(POS__DUMP);
730 _log(POS__TRACE,
"PosMgrBound::Handle_RelinquishStructureControl()");
731 call.
Dump(POS__DUMP);
743 _log(POS__TRACE,
"PosMgrBound::Handle_()");
744 call.
Dump(POS__DUMP);
755 _log(POS__TRACE,
"PosMgrBound::Handle_UnanchorOrbital()");
756 call.
Dump(POS__DUMP);
762 _log(POS__TRACE,
"PosMgrBound::Handle_OnlineOrbital()");
763 call.
Dump(POS__DUMP);
778 _log(POS__TRACE,
"PosMgrBound::Handle_ChangeStructureProvisionType()");
779 call.
Dump(POS__DUMP);
781 ChangeStructureProvisionType
args;
782 if (!args.Decode(&call.
tuple)) {
783 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
793 _log(POS__TRACE,
"PosMgrBound::Handle_LinkResourceForTower()");
794 call.
Dump(POS__DUMP);
807 _log(POS__TRACE,
"PosMgrBound::Handle_RunMoonProcessCycleforTower()");
808 call.
Dump(POS__DUMP);
819 _log(POS__TRACE,
"PosMgrBound::Handle_GMUpgradeOrbital()");
820 call.
Dump(POS__DUMP);
831 _log(POS__TRACE,
"PosMgrBound::Handle_CompleteOrbitalStateChange()");
832 call.
Dump(POS__DUMP);
Dispatcher *const m_dispatch
SystemEntity * GetSE(uint32 entityID) const
static std::string StringContent(PyRep *pRep)
#define _log(type, fmt,...)
void SetCorpAccess(bool set)
PyRep * GetItem(size_t index) const
Returns Python object.
PyRep * GetItemString(const char *key) const
Obtains database entry based on given key string.
int32 GetInt(uint32 index) const
PosMgrBound(PyServiceMgr *mgr, uint32 systemID)
PyCallable_Make_InnerDispatcher(PosMgr) PosMgr
PyRep * GetSiloCapacityForType(uint16 typeID)
double GetDouble(uint32 index) const
void SetItemString(size_t index, const char *str)
Stores Python string.
static void GetCorpJumpArrays(uint32 corpID, DBQueryResult &res)
Python floating point number.
const_iterator begin() const
int32 GetCorporationID() const
storage_type::const_iterator const_iterator
std::string m_strBoundObjectName
void Dump(FILE *into, const char *pfx) const
Dumps object to file.
itemID[count] Create count or of the specified item(from Insider)" ) COMMAND( goto
std::map< uint16, uint8 >::iterator GooEnd()
void _SetCallDispatcher(CallDispatcher *d)
PyRep * GetItem(size_t index) const
Returns Python object.
bool GetRow(DBResultRow &into)
#define sLog
Evaluates to a NewLog instance.
void SetStanding(float set)
DestinyManager * DestinyMgr()
InventoryItemRef GetSelf()
#define codelog(type, fmt,...)
void SetItem(size_t index, PyRep *object)
Stores Python object.
virtual PyBoundObject * CreateBoundObject(Client *pClient, const PyRep *bind_args)
SystemManager * SystemMgr() const
void SetUseAllyStandings(bool set)
std::string GetBindStr() const
void SetItem(size_t index, PyRep *object)
Stores Python object.
Dispatcher *const m_dispatch
PyServiceMgr *const m_manager
bool IsNull(uint32 index) const
ShipItemRef GetShip() const
const char * GetName() const
PyCallable_Make_Dispatcher(PosMgrBound)
Dispatcher *const m_dispatch
void SetPassword(std::string pass)
void SetStatus(float set)
#define PyCallable_REG_CALL(c, m)
void SetAnchor(Client *pClient, GPoint &pos)
uint32 GetStandingOwnerID()
virtual StructureSE * GetPOSSE()
void SetStatusDrop(bool set)
std::map< uint16, uint8 >::iterator GooBegin()
void SetShowInCalendar(bool set)
void WarpTo(const GPoint &where, int32 distance=0, bool autoPilot=false, SystemEntity *pSE=nullptr)
virtual TowerSE * GetTowerSE()
void UninstallBridgeLink(uint32 itemID)
const_iterator end() const
void SetPassword(std::string pass)
void SetSendFuelNotifications(bool set)
void SetCorpWar(bool set)
void Dump(LogType type) const
PyCallable_DECL_CALL(SetTowerPassword)
void SetDeployFlags(int8 anchor=0, int8 unanchor=0, int8 online=0, int8 offline=0)
void SetUseFlags(uint32 itemID, int8 view=0, int8 take=0, int8 use=0)
PyRep * GetUsageFlagList()
void InstallBridgeLink(uint32 itemID, uint32 toSystemID, uint32 toItemID)
void GetControlTowerFuelRequirements(DBQueryResult &res)
void SetAllyAccess(bool set)
void SetHarmonic(int8 set)
PyRep * GetCorpControlTowers(uint32 corpID)
void SetItem(PyRep *key, PyRep *value)
SetItem adds or sets a database entry.
const char * TypeString() const
void SetItemString(const char *key, PyRep *value)
SetItemString adds or sets a database entry.
const char * GetName() const
bool SendFuelNotifications()