Skip to content

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jun 23, 2024
1 parent 0912cd1 commit dc6fb44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
14 changes: 1 addition & 13 deletions src/api/squaremap/Squaremap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {
AnyMap,
Point2D,
SquaremapMap,
SquaremapMapResponse,
Expand All @@ -14,19 +13,8 @@ import Players from "./Players.js"
import Residents from "./Residents.js"

import { parsePlayers } from "./parser.js"
import type { EntityApi } from "helpers/EntityApi.js"

export interface IMap {
readonly Towns: EntityApi<any>
readonly Nations: EntityApi<any>
readonly Residents: EntityApi<any>
readonly Players: EntityApi<any>

readonly name: AnyMap
readonly inviteRange: number
}

class Squaremap extends DataHandler implements IMap {
class Squaremap extends DataHandler {
//#region Data classes
readonly Towns: Towns
readonly Nations: Nations
Expand Down
3 changes: 0 additions & 3 deletions src/helpers/EntityApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import type { IMap } from "src/api/squaremap/Squaremap.js"

export interface EntityApi<T> {
all(): Promise<T[]>
get(...list: string[]): Promise<T[] | T>
map: IMap
}

0 comments on commit dc6fb44

Please sign in to comment.