The API showed that EVENT_OBJECT_DESTROYED can return the any object in rooms is destroyed. But in engine code the structure destroy can only be logged when it is destroyed by creep or nuke attack (in
|
eventLog.push({event: C.EVENT_OBJECT_DESTROYED, objectId: target._id, data: { type: target.type }}); |
). I wonder if i need to spend a lot CPU to check if structure is changed or overwrite the prototype of
Structure? Or it is just missing in the structure destroy code?