ran prettier

This commit is contained in:
Hanusiak Piotr 2022-02-02 13:30:49 +01:00
parent 0eaeaf7cfb
commit 45a7e9331b
13 changed files with 62 additions and 77 deletions

View file

@ -2,11 +2,10 @@ import { writable } from "svelte/store";
export interface ActionsMenuData {
playerName: string;
actions: {actionName: string, callback: Function }[];
actions: { actionName: string; callback: Function }[];
}
function createActionsMenuStore() {
const { subscribe, update, set } = writable<ActionsMenuData | undefined>(undefined);
return {
@ -25,7 +24,7 @@ function createActionsMenuStore() {
},
removeAction: (actionName: string) => {
update((data) => {
const actionIndex = data?.actions.findIndex(action => action.actionName === actionName);
const actionIndex = data?.actions.findIndex((action) => action.actionName === actionName);
if (actionIndex !== undefined && actionIndex != -1) {
data?.actions.splice(actionIndex, 1);
}
@ -37,7 +36,7 @@ function createActionsMenuStore() {
*/
clear: () => {
set(undefined);
}
},
};
}

View file

@ -5,7 +5,7 @@ export function createColorStore() {
let followColor: number | undefined = undefined;
let apiColor: number | undefined = undefined;
let pointedByPointer: boolean = false;
let pointedByCharacter: boolean = false;