Skip to content

Commit

Permalink
v0.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Jul 4, 2024
1 parent 5775cce commit ee55f9b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drincs/nqtr",
"version": "0.2.11",
"version": "0.2.12",
"description": "A complete system introducing the concepts of location, time and event, producing the framework of a not-quite-point-and-click adventure game.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -23,7 +23,7 @@
},
"homepage": "https://github.com/DRincs-Productions/nqtr-pixi-vn#readme",
"devDependencies": {
"@drincs/nqtr": "^0.2.10",
"@drincs/nqtr": "^0.2.11",
"@types/react": "^18.3.3",
"ts-node": "^10.9.2",
"tsup": "^8.1.0",
Expand Down
9 changes: 5 additions & 4 deletions src/classes/navigation/Map.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphicItemType, OnRenderGraphicItemProps } from "@drincs/nqtr/dist/override"
import { GraphicItemType, NeighboringMapsInterface, OnRenderGraphicItemProps } from "@drincs/nqtr/dist/override"
import { getFlag, StoredClassModel } from "@drincs/pixi-vn"
import { getLocationsByMap } from "../../decorators/RoomDecorator"
import { MapProps } from "../../interface"
Expand Down Expand Up @@ -33,6 +33,7 @@ export default class MapBaseModel extends StoredClassModel {
this._renderImage = props.renderImage
this.defaultDisabled = props.disabled || false
this.defaultHidden = props.hidden || false
this._neighboringMaps = props.neighboringMaps
}

private defaultName: string
Expand Down Expand Up @@ -94,7 +95,7 @@ export default class MapBaseModel extends StoredClassModel {
this.setStorageProperty("hidden", value)
}

private _neighboringMaps?: { [key: string]: string }
private _neighboringMaps?: NeighboringMapsInterface
/**
* The neighboring maps that are available in this map.
* @example
Expand All @@ -107,10 +108,10 @@ export default class MapBaseModel extends StoredClassModel {
* }
* ```
*/
get neighboringMaps(): { [key: string]: string } {
get neighboringMaps(): NeighboringMapsInterface {
return this._neighboringMaps || {}
}
set neighboringMaps(value: { [key: string]: string } | undefined) {
set neighboringMaps(value: NeighboringMapsInterface | undefined) {
this._neighboringMaps = value
}

Expand Down
4 changes: 2 additions & 2 deletions src/interface/navigation/MapProps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphicItemType, OnRenderGraphicItemProps } from "@drincs/nqtr/dist/override"
import { GraphicItemType, NeighboringMapsInterface, OnRenderGraphicItemProps } from "@drincs/nqtr/dist/override"
import { MapBaseModel } from "../../classes"

export default interface MapProps {
Expand Down Expand Up @@ -35,7 +35,7 @@ export default interface MapProps {
* ```
* @default {}
*/
neighboringMaps?: { [key: string]: string }
neighboringMaps?: NeighboringMapsInterface
/**
* Whether is disabled. You can also pass a Pixi'VN flag name.
* @default false
Expand Down

0 comments on commit ee55f9b

Please sign in to comment.