Implement cancelable woka resource
This commit is contained in:
parent
315e2f6417
commit
1124ed5a5e
7 changed files with 36 additions and 13 deletions
|
@ -6,6 +6,7 @@ import { Character } from "../Entity/Character";
|
|||
import { get } from "svelte/store";
|
||||
import { userMovingStore } from "../../Stores/GameStore";
|
||||
import { followStateStore, followRoleStore, followUsersStore } from "../../Stores/FollowStore";
|
||||
import type CancelablePromise from "cancelable-promise";
|
||||
|
||||
export const hasMovedEventName = "hasMoved";
|
||||
export const requestEmoteEventName = "requestEmote";
|
||||
|
@ -20,7 +21,7 @@ export class Player extends Character {
|
|||
x: number,
|
||||
y: number,
|
||||
name: string,
|
||||
texturesPromise: Promise<string[]>,
|
||||
texturesPromise: CancelablePromise<string[]>,
|
||||
direction: PlayerAnimationDirections,
|
||||
moving: boolean,
|
||||
companion: string | null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue