@colyseus/fossil-delta-serializer
Advanced tools
Comparing version 0.14.17-alpha.5 to 0.14.17-alpha.6
@@ -17,5 +17,9 @@ 'use strict'; | ||
class FossilDeltaSerializer { | ||
constructor() { | ||
this.id = 'fossil-delta'; | ||
} | ||
id = 'fossil-delta'; | ||
// when a new user connects, it receives the 'previousState', which holds | ||
// the last binary snapshot other users already have, therefore the patches | ||
// that follow will be the same for all clients. | ||
previousState; | ||
previousStateEncoded; | ||
patches; | ||
reset(newState) { | ||
@@ -22,0 +26,0 @@ this.previousState = newState; |
{ | ||
"name": "@colyseus/fossil-delta-serializer", | ||
"version": "0.14.17-alpha.5", | ||
"version": "0.14.17-alpha.6", | ||
"input": "./src/index.ts", | ||
@@ -9,3 +9,3 @@ "main": "./build/index.js", | ||
"dependencies": { | ||
"@colyseus/core": "^0.14.17-alpha.5", | ||
"@colyseus/core": "^0.14.17-alpha.6", | ||
"fast-json-patch": "^2.0.5", | ||
@@ -30,3 +30,3 @@ "fossil-delta": "^1.0.1", | ||
}, | ||
"gitHead": "de84ce1e56dfe729bbdfebf8a8899b1de9de2d57" | ||
"gitHead": "76cc90e9b64410620c342ef04be69c3ee8a49c13" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
143287
1367