Skip to content

Commit

Permalink
Add empty NPC data type
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphie132 committed Jan 12, 2024
1 parent 72bd51e commit 80672f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/typescript/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ export function isSkillName(name: string): name is SkillName {
export const TYPES = {
/** Type names for Actor types */
ACTOR: {
CHARACTER: "character"
CHARACTER: "character",
NPC: "npc"
},
/** Type names for Item types */
ITEM: {
Expand Down
8 changes: 8 additions & 0 deletions src/main/typescript/data/actor/npc/source.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { TYPES } from "../../../constants.js";

export default interface NpcDataSource {
type: typeof TYPES.ACTOR.NPC;
data: NpcDataSourceData;
}

export class NpcDataSourceData {}
3 changes: 2 additions & 1 deletion src/main/typescript/data/actor/source.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type CharacterDataSource from "./character/source.js";
import type NpcDataSource from "./npc/source.js";

export type WvActorDataSource = CharacterDataSource;
export type WvActorDataSource = CharacterDataSource | NpcDataSource;

0 comments on commit 80672f5

Please sign in to comment.