feat(server.game): route events through a InterestManager (#47)
* feat(server.game): route events through a InterestManager * docs: explain the InterestManager and when to use it * fix(login): carry the authenticated account to the game server so players get distinct characters * fix(protocols.game): decode entity move from capture at opcode 0xE4 with little-endian ids and 16-bit coords * feat(game): make the server authoritative over movement and broadcast steps and turns to nearby players * refactor(game): drop the unused broadcastExcept and isOnline methods
This commit is contained in:
1 parent
3cfbc2169a
commit
4b533bd099
28 files changed
+702
-341
No files matched your search
@@ -45,7 +45,7 @@ class GameProtocolTest :
|
||||
0xB4u.toUByte(),
|
||||
0xB9u.toUByte(),
|
||||
0xC2u.toUByte(),
|
||||
0xEAu.toUByte(),
|
||||
0xE4u.toUByte(),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ class GameProtocolTest :
|
||||
0x01u
|
||||
}
|
||||
|
||||
test("0xEA EntityMovePacket is S2C only") {
|
||||
test("0xE4 EntityMovePacket is S2C only") {
|
||||
GameProtocol.outgoingRegistration(Side.SERVER, EntityMovePacket::class)?.opcode shouldBe
|
||||
0xEAu
|
||||
0xE4u
|
||||
GameProtocol.outgoingRegistration(Side.CLIENT, EntityMovePacket::class) shouldBe null
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user