fix(game): undo an interrupted script so a character does not lose or replay progress (#143)
* fix(game): make character store writes atomic so concurrent updates are not lost * fix(game): refuse a scripted move that would leave the map * fix(game): remember which way a character was facing across a relogin * fix(game): undo an interrupted script so the next login does not replay it * docs: record the script rollback and the atomic store writes * chore(game): cut the script recovery comments back * fix(game): roll a disconnected script back once, after the battle flush
This commit is contained in:
1 parent
94bf65e208
commit
e8baac972c
20 files changed
+540
-105
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package de.fiereu.openmmo.common
|
||||
|
||||
import de.fiereu.openmmo.common.enums.Direction
|
||||
import java.time.LocalDateTime
|
||||
|
||||
data class CharacterInfo(
|
||||
@@ -22,6 +23,8 @@ data class CharacterInfo(
|
||||
val positionMapId: Byte,
|
||||
val positionX: Short,
|
||||
val positionY: Short,
|
||||
/** Not on the wire. LoadEntity carries the facing the client draws. */
|
||||
val positionFacing: Direction = Direction.DOWN,
|
||||
val repelLeft: Short,
|
||||
val repelItemId: Short,
|
||||
val lureLeft: Short,
|
||||
|
||||
Reference in new issue
Block a user