feat(mpsync): 实体位置广播(EntityMove)与客户端在线玩家显示;mesh 顶点池复用(性能与内存.md §2)
This commit is contained in:
@@ -44,6 +44,7 @@ func newTestHandler() *testHandler {
|
||||
func (h *testHandler) OnLogin(code uint8) { h.login <- code }
|
||||
func (h *testHandler) OnChunk(data []byte) {}
|
||||
func (h *testHandler) OnBlockChange(m netproto.BlockChange) { h.blocks <- m }
|
||||
func (h *testHandler) OnEntityMove(m netproto.EntityMove) {}
|
||||
|
||||
// TestClientRoundtrip 客户端登录 → 发移动 → 收方块变更全链路(多人同步.md §2)。
|
||||
func TestClientRoundtrip(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user