@tigga I just read the source code of how Room.find works and found that the result of Room.find(FIND_HOSTILE_CREEPS)
(and other structures) are constructed every tick no mater whether I read it or not... Maybe it's not a good idea to parse the event log instead of just looping through the result of find
Liu233w
@Liu233w
3
Posts
804
Profile views
0
Followers
0
Following
Posts made by Liu233w
-
RE: Feature Request: More event types
-
RE: Feature Request: More event types
@tigga It is true that events like STRUCTURE_DECAYED and CREEP_SPAWNED can be detected by user's code without too much cpu cost. However, I really cannot image how to detect an invader entering a room in an O(1) time complexity.
-
Feature Request: More event types
Could you guys please add more event types to
Room.getEventLog
? like creep enter room, structure decayed, creep spawned, etc.