X-12 / andromeda

0 stars 0 forks source link

Create default system function for sending all data over SocketIO #36

Closed jextrevor closed 7 years ago

jextrevor commented 7 years ago

We need a function (ideally, in the System class so that we don't have to rewrite it for all systems) that takes all of a systems data and sends it over SocketIO. In order for this issue to be worked on, pull request #32 needs to be approved first.

Here's some basic pseudocode:

class System {
...
updateAll(){
    for all keys in this.callbacks{
        socketio.emit(this.name+"."+key)
    }
}