├── .gitignore ├── README.md ├── app.js ├── app ├── cache │ ├── dbUpdateCache.js │ ├── redis │ │ └── redis.js │ └── userCache.js ├── comm │ ├── consts.js │ ├── errCode.js │ ├── objType.js │ └── sceneConst.js ├── dao │ ├── mysql │ │ ├── async.js │ │ └── client.js │ └── userDao.js ├── data │ ├── chatDataService.js │ ├── gameDataService.js │ ├── sceneDataService.js │ └── worldDataService.js ├── message │ ├── Rpc.js │ ├── frontMessage.js │ ├── gameMessage.js │ ├── gameMessageHandle.js │ ├── gateMessage.js │ ├── gateMessageHandle.js │ ├── message.js │ ├── rpcMessage.js │ └── rpcMessageHandle.js ├── model │ ├── AoiCellInfo.js │ ├── chatUser.js │ ├── dbUser.js │ ├── gameUser.js │ ├── obj │ │ ├── BaseObj.js │ │ ├── Npc.js │ │ ├── Player.js │ │ ├── baseAttackObj.js │ │ ├── baseMoveObj.js │ │ └── enemy.js │ ├── sceneInfo.js │ └── worldUser.js ├── module │ ├── action │ │ ├── action.js │ │ ├── actionManager.js │ │ └── move.js │ ├── aoi.js │ ├── auth.js │ ├── chat.js │ ├── common.js │ ├── coordinate.js │ ├── gate.js │ ├── scene.js │ ├── user.js │ └── world.js ├── proto │ ├── README.md │ ├── gameProto.js │ ├── gameProto.json │ ├── msg │ │ ├── att_info.js │ │ ├── client_ping_c2s.js │ │ ├── error_notice_s2c.js │ │ ├── get_connector_c2s.js │ │ ├── get_connector_s2c.js │ │ ├── obj_info.js │ │ ├── obj_join_s2c.js │ │ ├── obj_leave_s2c.js │ │ ├── obj_walk_info.js │ │ ├── obj_walk_s2c.js │ │ ├── obj_walk_stop_s2c.js │ │ ├── player_walk_c2s.js │ │ ├── rpc_clientOffline_c2s.js │ │ ├── rpc_gateDispatch_c2s.js │ │ ├── rpc_helloServer_c2s.js │ │ ├── rpc_sendToGateByAll_c2s.js │ │ ├── rpc_sendToGateByList_c2s.js │ │ ├── rpc_sendToGate_c2s.js │ │ ├── rpc_userExitChat_c2s.js │ │ ├── rpc_userExitChat_s2c.js │ │ ├── rpc_userExitGame_c2s.js │ │ ├── rpc_userExitGame_s2c.js │ │ ├── rpc_userExitWorld_c2s.js │ │ ├── rpc_userExitWorld_s2c.js │ │ ├── rpc_userJoinChat_c2s.js │ │ ├── rpc_userJoinChat_s2c.js │ │ ├── rpc_userJoinGame_c2s.js │ │ ├── rpc_userJoinGame_s2c.js │ │ ├── rpc_userJoinWorld_c2s.js │ │ ├── rpc_userJoinWorld_s2c.js │ │ ├── system_rpcCall_c2s.js │ │ ├── system_rpcCall_s2c.js │ │ ├── system_rpcNotify_c2s.js │ │ ├── userInfo.js │ │ ├── user_chat_c2s.js │ │ ├── user_chat_s2c.js │ │ ├── user_joinScene_c2s.js │ │ ├── user_joinScene_s2c.js │ │ ├── user_login_c2s.js │ │ └── user_login_s2c.js │ ├── rpcProto.js │ ├── rpcProto.json │ ├── systemProto.js │ └── systemProto.json ├── servers │ ├── chat │ │ └── chat.js │ ├── connector │ │ └── connector.js │ ├── db │ │ └── db.js │ ├── game │ │ └── game.js │ ├── gate │ │ └── gate.js │ ├── log │ │ └── log.js │ ├── login │ │ └── login.js │ └── world │ │ └── world.js └── startup.js ├── config ├── db.json ├── game_db.sql ├── log4js.json ├── redis.conf ├── redis.json └── server.json ├── libs ├── config │ ├── db.js │ ├── redis.js │ └── server.js ├── crypto │ └── crypto.js ├── date │ └── date.js ├── global │ └── global.js ├── guid │ └── guid.js ├── log │ └── log.js ├── net │ └── link.js ├── program │ └── program.js ├── proto │ ├── ByteBuffer.js │ ├── ClearMsg.js │ ├── CreateMessage.js │ ├── Msg.js │ └── template │ │ ├── msgProtoTemplate.txt │ │ └── msgTemplate.txt ├── session │ ├── session.js │ ├── sessionService.js │ ├── userSession.js │ └── userSessionService.js ├── timer │ └── timer.js └── util │ └── utils.js ├── logs └── README.md ├── package.json ├── proto.sh ├── redis_clear.sh ├── redis_run.sh ├── redis_stop.sh ├── run.sh ├── server.png ├── setMac.sh ├── stop.sh └── test ├── test_guid.js └── test_server.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/README.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app.js -------------------------------------------------------------------------------- /app/cache/dbUpdateCache.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/cache/dbUpdateCache.js -------------------------------------------------------------------------------- /app/cache/redis/redis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/cache/redis/redis.js -------------------------------------------------------------------------------- /app/cache/userCache.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/cache/userCache.js -------------------------------------------------------------------------------- /app/comm/consts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/comm/consts.js -------------------------------------------------------------------------------- /app/comm/errCode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/comm/errCode.js -------------------------------------------------------------------------------- /app/comm/objType.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/comm/objType.js -------------------------------------------------------------------------------- /app/comm/sceneConst.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/comm/sceneConst.js -------------------------------------------------------------------------------- /app/dao/mysql/async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/dao/mysql/async.js -------------------------------------------------------------------------------- /app/dao/mysql/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/dao/mysql/client.js -------------------------------------------------------------------------------- /app/dao/userDao.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/dao/userDao.js -------------------------------------------------------------------------------- /app/data/chatDataService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/data/chatDataService.js -------------------------------------------------------------------------------- /app/data/gameDataService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/data/gameDataService.js -------------------------------------------------------------------------------- /app/data/sceneDataService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/data/sceneDataService.js -------------------------------------------------------------------------------- /app/data/worldDataService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/data/worldDataService.js -------------------------------------------------------------------------------- /app/message/Rpc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/Rpc.js -------------------------------------------------------------------------------- /app/message/frontMessage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/frontMessage.js -------------------------------------------------------------------------------- /app/message/gameMessage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/gameMessage.js -------------------------------------------------------------------------------- /app/message/gameMessageHandle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/gameMessageHandle.js -------------------------------------------------------------------------------- /app/message/gateMessage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/gateMessage.js -------------------------------------------------------------------------------- /app/message/gateMessageHandle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/gateMessageHandle.js -------------------------------------------------------------------------------- /app/message/message.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/message.js -------------------------------------------------------------------------------- /app/message/rpcMessage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/rpcMessage.js -------------------------------------------------------------------------------- /app/message/rpcMessageHandle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/message/rpcMessageHandle.js -------------------------------------------------------------------------------- /app/model/AoiCellInfo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/AoiCellInfo.js -------------------------------------------------------------------------------- /app/model/chatUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/chatUser.js -------------------------------------------------------------------------------- /app/model/dbUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/dbUser.js -------------------------------------------------------------------------------- /app/model/gameUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/gameUser.js -------------------------------------------------------------------------------- /app/model/obj/BaseObj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/obj/BaseObj.js -------------------------------------------------------------------------------- /app/model/obj/Npc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/obj/Npc.js -------------------------------------------------------------------------------- /app/model/obj/Player.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/obj/Player.js -------------------------------------------------------------------------------- /app/model/obj/baseAttackObj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/obj/baseAttackObj.js -------------------------------------------------------------------------------- /app/model/obj/baseMoveObj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/obj/baseMoveObj.js -------------------------------------------------------------------------------- /app/model/obj/enemy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/obj/enemy.js -------------------------------------------------------------------------------- /app/model/sceneInfo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/sceneInfo.js -------------------------------------------------------------------------------- /app/model/worldUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/model/worldUser.js -------------------------------------------------------------------------------- /app/module/action/action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/action/action.js -------------------------------------------------------------------------------- /app/module/action/actionManager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/action/actionManager.js -------------------------------------------------------------------------------- /app/module/action/move.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/action/move.js -------------------------------------------------------------------------------- /app/module/aoi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/aoi.js -------------------------------------------------------------------------------- /app/module/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/auth.js -------------------------------------------------------------------------------- /app/module/chat.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/chat.js -------------------------------------------------------------------------------- /app/module/common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/common.js -------------------------------------------------------------------------------- /app/module/coordinate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/coordinate.js -------------------------------------------------------------------------------- /app/module/gate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/gate.js -------------------------------------------------------------------------------- /app/module/scene.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/scene.js -------------------------------------------------------------------------------- /app/module/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/user.js -------------------------------------------------------------------------------- /app/module/world.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/module/world.js -------------------------------------------------------------------------------- /app/proto/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/README.md -------------------------------------------------------------------------------- /app/proto/gameProto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/gameProto.js -------------------------------------------------------------------------------- /app/proto/gameProto.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/gameProto.json -------------------------------------------------------------------------------- /app/proto/msg/att_info.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/att_info.js -------------------------------------------------------------------------------- /app/proto/msg/client_ping_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/client_ping_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/error_notice_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/error_notice_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/get_connector_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/get_connector_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/get_connector_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/get_connector_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/obj_info.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/obj_info.js -------------------------------------------------------------------------------- /app/proto/msg/obj_join_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/obj_join_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/obj_leave_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/obj_leave_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/obj_walk_info.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/obj_walk_info.js -------------------------------------------------------------------------------- /app/proto/msg/obj_walk_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/obj_walk_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/obj_walk_stop_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/obj_walk_stop_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/player_walk_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/player_walk_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_clientOffline_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_clientOffline_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_gateDispatch_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_gateDispatch_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_helloServer_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_helloServer_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_sendToGateByAll_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_sendToGateByAll_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_sendToGateByList_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_sendToGateByList_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_sendToGate_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_sendToGate_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userExitChat_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userExitChat_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userExitChat_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userExitChat_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userExitGame_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userExitGame_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userExitGame_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userExitGame_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userExitWorld_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userExitWorld_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userExitWorld_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userExitWorld_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userJoinChat_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userJoinChat_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userJoinChat_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userJoinChat_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userJoinGame_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userJoinGame_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userJoinGame_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userJoinGame_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userJoinWorld_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userJoinWorld_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/rpc_userJoinWorld_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/rpc_userJoinWorld_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/system_rpcCall_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/system_rpcCall_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/system_rpcCall_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/system_rpcCall_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/system_rpcNotify_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/system_rpcNotify_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/userInfo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/userInfo.js -------------------------------------------------------------------------------- /app/proto/msg/user_chat_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/user_chat_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/user_chat_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/user_chat_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/user_joinScene_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/user_joinScene_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/user_joinScene_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/user_joinScene_s2c.js -------------------------------------------------------------------------------- /app/proto/msg/user_login_c2s.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/user_login_c2s.js -------------------------------------------------------------------------------- /app/proto/msg/user_login_s2c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/msg/user_login_s2c.js -------------------------------------------------------------------------------- /app/proto/rpcProto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/rpcProto.js -------------------------------------------------------------------------------- /app/proto/rpcProto.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/rpcProto.json -------------------------------------------------------------------------------- /app/proto/systemProto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/systemProto.js -------------------------------------------------------------------------------- /app/proto/systemProto.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/proto/systemProto.json -------------------------------------------------------------------------------- /app/servers/chat/chat.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/chat/chat.js -------------------------------------------------------------------------------- /app/servers/connector/connector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/connector/connector.js -------------------------------------------------------------------------------- /app/servers/db/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/db/db.js -------------------------------------------------------------------------------- /app/servers/game/game.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/game/game.js -------------------------------------------------------------------------------- /app/servers/gate/gate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/gate/gate.js -------------------------------------------------------------------------------- /app/servers/log/log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/log/log.js -------------------------------------------------------------------------------- /app/servers/login/login.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/login/login.js -------------------------------------------------------------------------------- /app/servers/world/world.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/servers/world/world.js -------------------------------------------------------------------------------- /app/startup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/app/startup.js -------------------------------------------------------------------------------- /config/db.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/config/db.json -------------------------------------------------------------------------------- /config/game_db.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/config/game_db.sql -------------------------------------------------------------------------------- /config/log4js.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/config/log4js.json -------------------------------------------------------------------------------- /config/redis.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/config/redis.conf -------------------------------------------------------------------------------- /config/redis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/config/redis.json -------------------------------------------------------------------------------- /config/server.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/config/server.json -------------------------------------------------------------------------------- /libs/config/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/config/db.js -------------------------------------------------------------------------------- /libs/config/redis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/config/redis.js -------------------------------------------------------------------------------- /libs/config/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/config/server.js -------------------------------------------------------------------------------- /libs/crypto/crypto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/crypto/crypto.js -------------------------------------------------------------------------------- /libs/date/date.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/date/date.js -------------------------------------------------------------------------------- /libs/global/global.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/global/global.js -------------------------------------------------------------------------------- /libs/guid/guid.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/guid/guid.js -------------------------------------------------------------------------------- /libs/log/log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/log/log.js -------------------------------------------------------------------------------- /libs/net/link.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/net/link.js -------------------------------------------------------------------------------- /libs/program/program.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/program/program.js -------------------------------------------------------------------------------- /libs/proto/ByteBuffer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/proto/ByteBuffer.js -------------------------------------------------------------------------------- /libs/proto/ClearMsg.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/proto/ClearMsg.js -------------------------------------------------------------------------------- /libs/proto/CreateMessage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/proto/CreateMessage.js -------------------------------------------------------------------------------- /libs/proto/Msg.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/proto/Msg.js -------------------------------------------------------------------------------- /libs/proto/template/msgProtoTemplate.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/proto/template/msgProtoTemplate.txt -------------------------------------------------------------------------------- /libs/proto/template/msgTemplate.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/proto/template/msgTemplate.txt -------------------------------------------------------------------------------- /libs/session/session.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/session/session.js -------------------------------------------------------------------------------- /libs/session/sessionService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/session/sessionService.js -------------------------------------------------------------------------------- /libs/session/userSession.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/session/userSession.js -------------------------------------------------------------------------------- /libs/session/userSessionService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/session/userSessionService.js -------------------------------------------------------------------------------- /libs/timer/timer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/timer/timer.js -------------------------------------------------------------------------------- /libs/util/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/libs/util/utils.js -------------------------------------------------------------------------------- /logs/README.md: -------------------------------------------------------------------------------- 1 | log存放目录 -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/package.json -------------------------------------------------------------------------------- /proto.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/proto.sh -------------------------------------------------------------------------------- /redis_clear.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/redis_clear.sh -------------------------------------------------------------------------------- /redis_run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/redis_run.sh -------------------------------------------------------------------------------- /redis_stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | redis-cli -p 6379 -a yangsong shutdown -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/run.sh -------------------------------------------------------------------------------- /server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/server.png -------------------------------------------------------------------------------- /setMac.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/setMac.sh -------------------------------------------------------------------------------- /stop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/stop.sh -------------------------------------------------------------------------------- /test/test_guid.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/test/test_guid.js -------------------------------------------------------------------------------- /test/test_server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yicaoyimuys/NodeJsGameServer/HEAD/test/test_server.js --------------------------------------------------------------------------------