-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump version to 0.3.0 and update interface extensions for cons…
…istency
- Loading branch information
1 parent
573ec9b
commit 1e00ea8
Showing
8 changed files
with
75 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import { CommitmentInterface } from "@drincs/nqtr/dist/override"; | ||
import { CharacterInterface } from "@drincs/pixi-vn"; | ||
import { RoomInterface } from "."; | ||
import { ExecutionType } from "../types"; | ||
import { ActivityBaseInternalInterface } from "./ActivityInterface"; | ||
|
||
export default interface CommitmentBaseInterface extends CommitmentBaseInternalInterface // CommitmentInterface | ||
{ } | ||
export default interface CommitmentBaseInterface extends CommitmentBaseInternalInterface, CommitmentInterface {} | ||
|
||
export interface CommitmentBaseInternalInterface extends ActivityBaseInternalInterface { | ||
/** | ||
* The character or characters that are in the commitment and so in the room. | ||
*/ | ||
readonly characters: CharacterInterface[] | ||
/** | ||
* The room where the commitment is. | ||
*/ | ||
readonly room: RoomInterface | ||
/** | ||
* Execution type. If is "automatic" the onRun() runned automatically when the palayer is in the room. If is "interaction" the player must interact with the character to run the onRun() function. | ||
* If you set "automatic" remember to remove the commitment when it is no longer needed, because otherwise it repeats itself every time. | ||
*/ | ||
executionType: ExecutionType | ||
/** | ||
* The priority. The higher the number, the higher the priority. | ||
* To ensure that a character is not in 2 places at the same time, if there are 2 or more valid commits at the same time and with the same character, the one with the highest priority will be chosen. | ||
*/ | ||
priority: number | ||
/** | ||
* The character or characters that are in the commitment and so in the room. | ||
*/ | ||
readonly characters: CharacterInterface[]; | ||
/** | ||
* The room where the commitment is. | ||
*/ | ||
readonly room: RoomInterface; | ||
/** | ||
* Execution type. If is "automatic" the onRun() runned automatically when the palayer is in the room. If is "interaction" the player must interact with the character to run the onRun() function. | ||
* If you set "automatic" remember to remove the commitment when it is no longer needed, because otherwise it repeats itself every time. | ||
*/ | ||
executionType: ExecutionType; | ||
/** | ||
* The priority. The higher the number, the higher the priority. | ||
* To ensure that a character is not in 2 places at the same time, if there are 2 or more valid commits at the same time and with the same character, the one with the highest priority will be chosen. | ||
*/ | ||
priority: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { LocationInterface } from "@drincs/nqtr/dist/override"; | ||
import { MapInterface, RoomInterface } from ".."; | ||
import NavigationAbstractInterface from "./NavigationAbstractClass"; | ||
|
||
export default interface LocationBaseInterface extends LocationBaseInternalInterface // LocationInterface | ||
{ } | ||
export default interface LocationBaseInterface extends LocationBaseInternalInterface, LocationInterface {} | ||
|
||
export interface LocationBaseInternalInterface extends NavigationAbstractInterface { | ||
/** | ||
* The id of the location. | ||
*/ | ||
readonly id: string; | ||
/** | ||
* The map where the location is. | ||
*/ | ||
readonly map: MapInterface | ||
/** | ||
* Get all rooms in the location. | ||
* @returns The rooms in the location. | ||
*/ | ||
readonly rooms: RoomInterface[] | ||
/** | ||
* The id of the location. | ||
*/ | ||
readonly id: string; | ||
/** | ||
* The map where the location is. | ||
*/ | ||
readonly map: MapInterface; | ||
/** | ||
* Get all rooms in the location. | ||
* @returns The rooms in the location. | ||
*/ | ||
readonly rooms: RoomInterface[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { MapInterface } from "@drincs/nqtr/dist/override"; | ||
import { LocationInterface } from ".."; | ||
import NavigationAbstractInterface from "./NavigationAbstractClass"; | ||
|
||
export default interface MapBaseInterface extends MapBaseInternalInterface // MapInterface | ||
{ } | ||
export default interface MapBaseInterface extends MapBaseInternalInterface, MapInterface {} | ||
|
||
export interface MapBaseInternalInterface extends NavigationAbstractInterface { | ||
/** | ||
* The id of the map. | ||
*/ | ||
readonly id: string; | ||
/** | ||
* Get all locations in the map. | ||
* @returns The locations in the map. | ||
*/ | ||
readonly locations: LocationInterface[] | ||
/** | ||
* The id of the map. | ||
*/ | ||
readonly id: string; | ||
/** | ||
* Get all locations in the map. | ||
* @returns The locations in the map. | ||
*/ | ||
readonly locations: LocationInterface[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { CommitmentInterface, LocationInterface } from ".."; | ||
import { LocationInterface } from "@drincs/nqtr/dist/override"; | ||
import { CommitmentInterface, LocationInterface as LocationInterfaceInt } from ".."; | ||
import NavigationAbstractInterface from "./NavigationAbstractClass"; | ||
|
||
export default interface RoomBaseInterface extends RoomBaseInternalInterface // LocationInterface | ||
{ } | ||
export default interface RoomBaseInterface extends RoomBaseInternalInterface, LocationInterface {} | ||
|
||
export interface RoomBaseInternalInterface extends NavigationAbstractInterface { | ||
/** | ||
* The id of the room. | ||
*/ | ||
readonly id: string; | ||
/** | ||
* The location where the room is. | ||
*/ | ||
readonly location: LocationInterface | ||
/** | ||
* Get the character commitments of the room. | ||
*/ | ||
readonly routine: CommitmentInterface[] | ||
/** | ||
* The id of the room. | ||
*/ | ||
readonly id: string; | ||
/** | ||
* The location where the room is. | ||
*/ | ||
readonly location: LocationInterfaceInt; | ||
/** | ||
* Get the character commitments of the room. | ||
*/ | ||
readonly routine: CommitmentInterface[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters