diff --git a/scripts/server/core.js b/scripts/server/core.js index 8d21fa5a..d7e71ef4 100644 --- a/scripts/server/core.js +++ b/scripts/server/core.js @@ -9,10 +9,28 @@ let scriptVersion = "1.1"; let serverStartTime = 0; -let logLevel = LOG_INFO|LOG_DEBUG|LOG_VERBOSE|LOG_WARN|LOG_ERROR; +let logLevel = LOG_INFO|LOG_ERROR|LOG_WARN|LOG_DEBUG; // =========================================================================== +/** + * @typedef {Object} ServerData + * @property {Array.} vehicles + * @property {Array.} clients + * @property {Array.} businesses + * @property {Array.} houses + * @property {Array.} commands + * @property {Array} groundItemCache + * @property {Array} groundPlantCache + * @property {Array.} items + * @property {Array.} itemTypes + * @property {Array.} clans + * @property {Array} localeStrings + * @property {Array.} npcs + * @property {Array.} races + * @property {Array.} jobs + * @property {Array.} gates + */ let serverData = { vehicles: [], clients: new Array(128), @@ -24,33 +42,25 @@ let serverData = { items: [], itemTypes: [], clans: [], - antiCheat: { - //whiteListedGameScripts: [], - //blackListedGameScripts: [], - }, localeStrings: {}, cachedTranslations: [], cachedTranslationFrom: [], - triggers: [], + //triggers: [], npcs: [], races: [], + jobs: [], + gates: [], }; // =========================================================================== -function initServerData() { -} - -// =========================================================================== - +/** + * + * @return {ServerData} + * + */ function getServerData() { return serverData; } -// =========================================================================== - -function getModNatives() { - return modNatives; -} - // =========================================================================== \ No newline at end of file