1
0
forked from noxious/client

Renamed zone > map

This commit is contained in:
2025-01-02 17:31:31 +01:00
parent 736ddddc54
commit 40c87f0ee3
65 changed files with 762 additions and 762 deletions

View File

@ -46,7 +46,7 @@ export type Object = {
frameHeight: number
createdAt: Date
updatedAt: Date
ZoneObject: ZoneObject[]
MapObject: PlacedMapObject[]
}
export type Item = {
@ -65,34 +65,34 @@ export type Item = {
export type ItemType = 'WEAPON' | 'HELMET' | 'CHEST' | 'LEGS' | 'BOOTS' | 'GLOVES' | 'RING' | 'NECKLACE'
export type ItemRarity = 'COMMON' | 'UNCOMMON' | 'RARE' | 'EPIC' | 'LEGENDARY'
export type Zone = {
export type Map = {
id: UUID
name: string
width: number
height: number
tiles: any | null
pvp: boolean
zoneEffects: ZoneEffect[]
zoneEventTiles: ZoneEventTile[]
zoneObjects: ZoneObject[]
mapEffects: MapEffect[]
mapEventTiles: MapEventTile[]
mapObjects: PlacedMapObject[]
characters: Character[]
chats: Chat[]
createdAt: Date
updatedAt: Date
}
export type ZoneEffect = {
export type MapEffect = {
id: UUID
zoneId: UUID
zone: Zone
mapId: UUID
map: Map
effect: string
strength: number
}
export type ZoneObject = {
export type PlacedMapObject = {
id: UUID
zoneId: UUID
zone: Zone
mapId: UUID
map: Map
objectId: UUID
object: Object
depth: number
@ -101,29 +101,29 @@ export type ZoneObject = {
positionY: number
}
export enum ZoneEventTileType {
export enum MapEventTileType {
BLOCK = 'BLOCK',
TELEPORT = 'TELEPORT',
NPC = 'NPC',
ITEM = 'ITEM'
}
export type ZoneEventTile = {
export type MapEventTile = {
id: UUID
zoneId: UUID
zone: Zone
type: ZoneEventTileType
mapId: UUID
map: Map
type: MapEventTileType
positionX: number
positionY: number
teleport?: ZoneEventTileTeleport
teleport?: MapEventTileTeleport
}
export type ZoneEventTileTeleport = {
export type MapEventTileTeleport = {
id: UUID
zoneEventTileId: UUID
zoneEventTile: ZoneEventTile
toZoneId: UUID
toZone: Zone
mapEventTileId: UUID
mapEventTile: MapEventTile
toMapId: UUID
toMap: Map
toPositionX: number
toPositionY: number
toRotation: number
@ -188,14 +188,14 @@ export type Character = {
characterType: CharacterType | null | string
characterHairId: UUID | null
characterHair: CharacterHair | null
zoneId: UUID
zone: Zone
mapId: UUID
map: Map
chats: Chat[]
items: CharacterItem[]
equipment: CharacterEquipment[]
}
export type ZoneCharacter = {
export type MapCharacter = {
character: Character
isMoving?: boolean
}
@ -252,8 +252,8 @@ export type Chat = {
id: UUID
characterId: UUID
character: Character
zoneId: UUID
zone: Zone
mapId: UUID
map: Map
message: string
createdAt: Date
}
@ -272,7 +272,7 @@ export type WeatherState = {
fogDensity: number
}
export type zoneLoadData = {
zone: Zone
characters: ZoneCharacter[]
export type mapLoadData = {
map: Map
characters: MapCharacter[]
}