a game server created with anything I have learned.
index | function | status |
---|---|---|
1 | 断线重连 | |
2 | 节点分离 | |
3 |
- SocketAsyncEventArgs 池
- AsyncUserToken
- Buffer池
- ExtSocket 作为
graph LR
User --> Role
User --> Session --> Socket
待续
C2S_Begin | 0 | S2C_Begin | 0 |
---|---|---|---|
C2S_Test | 4999 | S2C_Test | 5000 |
C2S_Login | 1 | S2C_Login | 9999 |
C2S_Register | 2 | S2C_Register | 9998 |
C2S_Move | 3 | S2C_Move | 9997 |
C2S_NavAuto | 4 | S2C_Sight | 9996 |
C2S_StopMove | 5 | S2C_StopMove | 9995 |
将地图分成二维格子阵列,每个格子具有相同固定大小,格子上存储当前格子内所有Entity
- 目标进入AOI
- 目标移出AOI
待续
待续
A Formal Basis for the Heuristic Determination of Minimum Cost Paths A*-based Pathfinding in Modern Computer Games