19 _log(ITEM__TRACE,
"Created ModuleItem for %s(%u).",
name(),
itemID());
24 return InventoryItem::Load<ModuleItem>(modID);
34 if (modRef.
get() ==
nullptr) {
58 _log(MODULE__DEBUG,
"ModuleItem::SetOnline() - set module %s(%u) to %s", \
65 if (pClient ==
nullptr) {
66 _log(MODULE__WARNING,
"ModuleItem::SetOnline() - No client object found using m_ownerID (%u) for module %s(%u)", \
82 Notify_OnGodmaShipEffect shipEff;
83 shipEff.itemID = ge.selfID;
84 shipEff.effectID = ge.effectID;
86 shipEff.start = online;
87 shipEff.active = online;
88 shipEff.environment = ge.Encode();
89 shipEff.startTime = shipEff.timeNow;
95 shipEff.duration = 0.0;
98 shipEff.repeat = (online ? 1 : 0);
101 events->
AddItem(shipEff.Encode());
102 Notify_OnMultiEvent multi;
103 multi.events = events;
void SendNotification(const PyAddress &dest, EVENotificationStream ¬i, bool seq=true)
ModuleItem(uint32 _modID, const ItemType &_type, const ItemData &_data)
RefPtr< ModuleItem > ModuleItemRef
#define _log(type, fmt,...)
bool HasAttribute(const uint16 attrID) const
void SetOnline(bool online=false, bool isRig=false)
static ModuleItemRef Spawn(ItemData &data)
void SetAttribute(uint16 attrID, int num, bool notify=true)
static uint32 CreateItemID(ItemData &data)
EvilNumber GetAttribute(const uint16 attrID) const
static ModuleItemRef Load(uint32 modID)