Observation¶
- class luafun.game.states.SyncWorldListener(host, port, queue, state, stats, name)[source]¶
Bases:
objectConnect to the dota2 game and save the messages in a queue to be read
Size of the message through time. Think dota might allocate a fixed size of memory for the proto message and if the message grows too much the game stop pushing proto messages.
I think with active bots we could limit the message size to something reasonable (i.e if creeps die fast enough that the number of units on the map is fairly constant).
- Attributes
- running
Methods
connect
insert_message
read_message
recover
run
- property running¶