mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 15:33:12 +09:00
#61 Remote map chunk storage and equesting working, waiting for renderer
This commit is contained in:
1 parent
8fce9a2cfe
commit
eba982836c
3 files changed
+40
-5
No files matched your search
+9
-1
@@ -1,5 +1,13 @@
|
||||
var socket = io.connect('http://localhost:8080');
|
||||
socket.on('hello', function (data) {
|
||||
console.log(data);
|
||||
socket.emit('registerSlaveMappper', { instanceID: 'data' });
|
||||
socket.emit("registerMapRequester", {instanceID: '1611985668'});
|
||||
|
||||
socket.on("displayChunk", function(chunk){
|
||||
console.log(chunk)
|
||||
});
|
||||
});
|
||||
|
||||
function requestChunk(x,y){
|
||||
socket.emit('requestChunk', {x:x, y:y, instanceID: '1611985668'});
|
||||
}
|
||||
Reference in new issue
Block a user