UNPKG

@csegames/camelot-unchained

Version:

Camelot Unchained Client Library

68 lines (67 loc) 2.14 kB
"use strict"; /** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ Object.defineProperty(exports, "__esModule", { value: true }); var def = require("./definitions"); function accessLevelString(access) { switch (access) { case def.AccessType.Public: return 'Everyone'; case def.AccessType.Beta3: return 'All Backers'; case def.AccessType.Beta2: return 'Beta 1-2, Alpha, IT'; case def.AccessType.Beta1: return 'Beta 1, Alpha, IT'; case def.AccessType.Alpha: return 'Alpha, IT'; case def.AccessType.InternalTest: return 'IT'; case def.AccessType.Employees: return 'CSE'; } } exports.accessLevelString = accessLevelString; function raceString(race) { switch (race) { case def.Race.Luchorpan: return 'Luchorpán'; case def.Race.Valkyrie: return 'Valkyrie'; case def.Race.HumanMaleV: return 'Human'; case def.Race.HumanMaleA: return 'Human'; case def.Race.HumanMaleT: return 'Human'; case def.Race.Pict: return 'Pict'; } } exports.raceString = raceString; function archetypeString(archetype) { switch (archetype) { case def.Archetype.BlackKnight: return 'Black Knight'; case def.Archetype.Fianna: return 'Fianna'; case def.Archetype.Mjolnir: return 'Mjölnir'; case def.Archetype.Physician: return 'Physician'; case def.Archetype.Empath: return 'Empath'; case def.Archetype.Stonehealer: return 'Stonehealer'; case def.Archetype.Blackguard: return 'Black Guard'; case def.Archetype.ForestStalker: return 'Forest Stalker'; case def.Archetype.WintersShadow: return 'Winter\'s Shadow'; } } exports.archetypeString = archetypeString;