![]() This file basically check the database for records. For items src/core/database/defaults/item.ts file will executed. After connecting the database defaults will executed. and we can't simply use json file to read it. For example item definitions won't change. Socket // then we bind it to model export const Account = model ( 'Account', AccountSchema, 'accounts' ) Defaults You can create server cluster (you can listen multiple sockets at one time) by calling KOServerFactory function.Įxport interface IKOSocket extends net. To create a socket server, the definition of factory is defined in src/core/server.ts folder. In this folder we define all the common stuff for both login and game server. Thats why we have src/core folder in our project. How this standards effect our codeĪlways we will send and receive same format over and over again. It will wraps with 0xAA55 and sends a operation code. This examples will cover the client side, but server side works same. ![]() so server will tell which files to download) (Operation byte "2" simply DOWNLOADINFO_REQ signal) "\xAA\x55\x03\x00\x02\x00\x00\x55\xAA" (after 0x02 client sends \x00\x00 this is actually current version of game.
0 Comments
Leave a Reply. |