UserID, UserName type

- Owner가 아니고, User여야.
This commit is contained in:
2024-03-11 12:38:37 +00:00
parent cf3a208591
commit c99f97323d
2 changed files with 5 additions and 5 deletions
@@ -1,13 +1,13 @@
import type { DiplomaticPermission, GeneralID, GeneralName, ItemID, ItemKeyType, NationID, NpcType, OfficerLevel, OwnerID, OwnerName, PersonalityType, SpecialityDomesticType, SpecialityWarType, TroopID } from "../defs.js"; import type { DiplomaticPermission, GeneralID, GeneralName, ItemID, ItemKeyType, NationID, NpcType, OfficerLevel, PersonalityType, SpecialityDomesticType, SpecialityWarType, TroopID, UserID, UserName } from "../defs.js";
export interface IGeneralEntity { export interface IGeneralEntity {
id: GeneralID; id: GeneralID;
owner?: OwnerID; ownerID?: UserID;
npcType: NpcType; npcType: NpcType;
affinity?: number; affinity?: number;
picture?: string; picture?: string;
name: GeneralName; name: GeneralName;
ownerName?: OwnerName; ownerName?: UserName;
nationID: NationID; nationID: NationID;
cityID: number; cityID: number;
troopID?: TroopID; troopID?: TroopID;
+2 -2
View File
@@ -1,6 +1,6 @@
//Type 정의 //Type 정의
export type OwnerID = number & { zz_t?: "OwnerID" }; export type UserID = number & { zz_t?: "UserID" };
export type OwnerName = string & { zz_t?: "OwnerName" }; export type UserName = string & { zz_t?: "UserName" };
export type GeneralID = number & { zz_t?: "GeneralID" }; export type GeneralID = number & { zz_t?: "GeneralID" };
export type GeneralName = string & { zz_t?: "GeneralName" }; export type GeneralName = string & { zz_t?: "GeneralName" };