camelot-unchained
Version:
Camelot Unchained Client Library
157 lines (156 loc) • 7.45 kB
TypeScript
/**
* 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/.
*/
import CoreSettings from './core/CoreSettings';
import clientInterface from './core/clientInterface';
import client from './core/client';
import abilityTags from './core/constants/abilityConstants/abilityTags';
import archetype from './core/constants/archetype';
import buildUIMode from './core/constants/buildUIMode';
import channelId from './core/constants/channelId';
import emotes from './core/constants/emotes';
import race from './core/constants/race';
import soundEvents from './core/constants/soundEvents';
import tagConstraintType from './core/constants/tagConstraintType';
import gearSlot from './core/constants/gearSlot';
import plotPermissions from './core/constants/plotPermissions';
import attributeType from './core/constants/attributeType';
import faction from './core/constants/faction';
import gender from './core/constants/gender';
import Ability from './core/classes/Ability';
import Combatant from './core/classes/Combatant';
import Player from './core/classes/Player';
import Character from './core/classes/Character';
import ControlGame from './core/classes/ControlGame';
import Injury from './core/classes/Injury';
import Population from './core/classes/Population';
import Inventory from './core/classes/Inventory';
import Item from './core/classes/Item';
import EquippedGear from './core/classes/EquippedGear';
import LogMessage from './core/classes/LogMessage';
import ChatMessage from './core/classes/ChatMessage';
import ConsoleMessage from './core/classes/ConsoleMessage';
import * as core from './core/core';
export * from './core/core';
import stores from './stores/stores';
import components from './components/components';
import * as restAPI from './restapi/RestAPI';
import * as groups from './groups';
export * from './groups';
import events from './events';
import * as eventExports from './events';
import signalr from './signalr';
export * from './slashCommands';
import * as slashCommandsExports from './slashCommands';
declare let cu: {
api: {
loginToken: string;
shardID: number;
} & {
getInvitesForCharacter: (shard: number, characterID: string) => any;
getInvitesForGroup: (shard: number, groupID: string) => any;
} & {
createWarband: (shard: number, characterID: string, name?: string) => any;
inviteCharacterToWarbandByID: (shard: number, warbandID: string, characterID: string, targetID: string) => any;
inviteCharacterToWarbandByName: (shard: number, characterID: string, targetName: string, warbandID?: string) => any;
joinWarbandByID: (shard: number, warbandID: string, characterID: string, inviteCode?: string) => any;
joinWarbandByName: (shard: number, warbandName: string, characterID: string, inviteCode?: string) => any;
getWarbandInfoByID: (shard: number, warbandID: string) => any;
getWarbandInfoByName: (shard: number, warbandName: string) => any;
};
CoreSettings: typeof CoreSettings;
client: clientInterface;
abilityTags: typeof abilityTags;
archetype: typeof archetype;
buildUIMode: typeof buildUIMode;
channelId: typeof channelId;
emotes: typeof emotes;
race: typeof race;
soundEvents: {
CANCEL_ABILITY: number;
LOCAL_PLAYER_BEGIN_CAST: number;
LOCAL_PLAYER_BEGIN_SWING: number;
LOCAL_PLAYER_DEATH: number;
LOCAL_PLAYER_SPAWN: number;
LOCAL_PLAYER_TOOK_DAMAGE: number;
PLAY_FOOTSTEP_LEATHERBOOT_DIRT: number;
PLAY_FOOTSTEP_METALBOOT_DIRT: number;
PLAY_FOOTSTEP_METALBOOT_WITHMETALARMOR_DIRT: number;
PLAY_GENERIC_PROJECTILE: number;
PLAY_GENERIC_PROJECTILE_HIT: number;
PLAY_INSTRUMENT_ALBION_HORNBASSMOD_LONG_DISTANT_C3_MEDIUMV: number;
PLAY_LOADINGSCREEN: number;
PLAY_LOADINGSCREEN_COMPLETE: number;
PLAY_MAINMENU: number;
PLAY_MELEE_IMPACT: number;
PLAY_NATUREAMBIENCE: number;
PLAY_SFX_ABILITY_ACTIVATE_SWOOSH_LOCALPLAYER: number;
PLAY_SFX_ABILITY_CHARGING_LOOP: number;
PLAY_SFX_ABILITY_CONE_STONE_ACTIVATE: number;
PLAY_SFX_ABILITY_DART_STONE_ACTIVATE: number;
PLAY_SFX_ABILITY_DIRECT_STONE_ACTIVATE: number;
PLAY_SFX_ABILITY_HEALING_BANDAGE_END: number;
PLAY_SFX_ABILITY_HEALING_BANDAGE_START: number;
PLAY_SFX_ABILITY_TOUCH_STONE_ACTIVATE: number;
PLAY_SFX_ABILITY_WAVE_STONE_ACTIVATE: number;
PLAY_UI_ABILITYCRAFTING_ADDSELECTION: number;
PLAY_UI_ABILITYCRAFTING_BUILD: number;
PLAY_UI_ABILITYCRAFTING_RESET: number;
PLAY_UI_ABILITYCRAFTING_SIDEPANEL_OPEN: number;
PLAY_UI_MENU_BANESELECT: number;
PLAY_UI_MENU_BOONSELECT: number;
PLAY_UI_MENU_CHARACTERSELECT_CHANGE: number;
PLAY_UI_MENU_CREATENEWCHARACTER: number;
PLAY_UI_MENU_GENERALCONFIRM: number;
PLAY_UI_MENU_GENERICSELECT: number;
PLAY_UI_MENU_PREVIEWREALM_ARTHURIAN: number;
PLAY_UI_MENU_PREVIEWREALM_TDD: number;
PLAY_UI_MENU_PREVIEWREALM_VIKING: number;
PLAY_UI_MENU_SELECTREALM: number;
PLAY_UI_MENU_SERVERSELECT: number;
PLAY_UI_MENUSTATE_CLOSED: number;
PLAY_UI_MENUSTATE_OPEN: number;
PLAY_UI_SPELLBOOK_DELETESPELL: number;
PLAY_UI_SPELLBOOK_OPEN: number;
PLAY_UI_SPELLBOOK_PAGEFLIP_BACKWARD: number;
PLAY_UI_SPELLBOOK_PAGEFLIP_FORWARD: number;
PLAY_UI_SPELLBOOK_PUTAWAY: number;
PLAYER_BEGIN_CAST: number;
PLAYER_BEGIN_SWING: number;
PLAYER_DEATH: number;
PLAYER_SPAWN: number;
PLAYER_TOOK_DAMAGE: number;
SET_STATE_CHARACTERCREATION_ATTRIBUTES: number;
SET_STATE_CHARACTERCREATION_BOONSANDBANES: number;
SET_STATE_CHARACTERCREATION_PREVIEW_ARTHURIAN: number;
SET_STATE_CHARACTERCREATION_PREVIEW_TDD: number;
SET_STATE_CHARACTERCREATION_PREVIEW_VIKING: number;
SET_STATE_CHARACTERCREATION_RACE: number;
SET_STATE_CHARACTERCREATION_SERVERSELECT: number;
STOP_UI_MENU_PREVIEWREALM: number;
};
tagConstraintType: typeof tagConstraintType;
gearSlot: typeof gearSlot;
plotPermissions: typeof plotPermissions;
attributeType: typeof attributeType;
faction: typeof faction;
gender: typeof gender;
Ability: typeof Ability;
Combatant: typeof Combatant;
Player: typeof Player;
Character: typeof Character;
ControlGame: typeof ControlGame;
Injury: typeof Injury;
Population: typeof Population;
Inventory: typeof Inventory;
Item: typeof Item;
EquippedGear: typeof EquippedGear;
LogMessage: typeof LogMessage;
ChatMessage: typeof ChatMessage;
ConsoleMessage: typeof ConsoleMessage;
restAPI: typeof restAPI;
} & typeof groups & typeof eventExports & typeof slashCommandsExports;
export default cu;
export { cu, CoreSettings, clientInterface, client, abilityTags, archetype, buildUIMode, channelId, emotes, race, soundEvents, tagConstraintType, gearSlot, plotPermissions, attributeType, faction, gender, Ability, Combatant, Player, Character, ControlGame, Injury, Population, Inventory, Item, EquippedGear, LogMessage, ChatMessage, ConsoleMessage, core, events, stores, components, restAPI, signalr };