File size: 1,938 Bytes
5b324f1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | export interface MapData {
id: string;
name: string;
background: string;
mapItems: MapItem[];
properties: Property[];
chanceCards: ChanceCard[];
itemTypes: ItemType[];
indexList: string[];
streets: Street[];
inUse: boolean;
houseModel_lv0: Model | null;
houseModel_lv1: Model | null;
houseModel_lv2: Model | null;
}
export interface MapItem {
_id: string;
id: string;
x: number;
y: number;
rotation: 0 | 1 | 2 | 3;
type: ItemType;
linkto?: MapItem;
arrivedEvent?: ArrivedEvent;
property?: Property;
}
export interface ItemType {
id: string;
color: string;
name: string;
model: Model;
effectCode?: string;
hasEvent: boolean;
size: number;
}
export interface Model {
id: string;
name: string;
fileUrl: string;
fileName: string;
}
export interface Music {
id: string;
name: string;
url: string;
}
export interface Property {
id: string;
name: string;
sellCost: number;
buildCost: number;
cost_lv0: number;
cost_lv1: number;
cost_lv2: number;
street: Street;
}
export interface Street {
id: string;
name: string;
increase: number;
}
export interface ChanceCard {
id: string;
name: string;
describe: string;
icon: string;
color: string;
effectCode: string;
}
export interface GameMap {
id: string;
name: string;
mapItems: MapItem[];
properties: Property[];
chanceCards: ChanceCard[];
itemTypes: ItemType[];
}
export interface User {
id: string;
username: string;
avatar: string;
color: string;
}
export interface Role {
id: string;
baseUrl: string;
roleName: string;
fileName: string;
color: string;
}
export interface ArrivedEvent {
id: string;
name: string;
describe: string;
iconUrl: string;
effectCode: string;
mapItem: MapItem[];
}
export type RoomMapItem = {
roomId: string;
hostName: string;
hostId: string;
hostPeerId: string | null;
createTime: number;
deleteTime: number;
lastHeartTime: number;
isPrivate: boolean;
isStarted: boolean;
};
|