1
0
forked from noxious/server

Renamed zone > map

This commit is contained in:
2025-01-02 17:31:24 +01:00
parent 887da447e0
commit 11041fec83
54 changed files with 871 additions and 895 deletions

View File

@ -8,7 +8,7 @@ import { CharacterItem } from './characterItem'
import { CharacterType } from './characterType'
import { Chat } from './chat'
import { User } from './user'
import { Zone } from './zone'
import { Map } from './map'
import { BaseEntity } from '#application/base/baseEntity'
import { UUID } from '#application/types'
@ -35,7 +35,7 @@ export class Character extends BaseEntity {
// Position
@ManyToOne()
zone!: Zone // @TODO: Update to spawn point when current zone is not found
map!: Map // @TODO: Update to spawn point when current map is not found
@Property()
positionX = 0
@ -142,13 +142,13 @@ export class Character extends BaseEntity {
return this.chats
}
setZone(zone: Zone) {
this.zone = zone
setMap(map: Map) {
this.map = map
return this
}
getZone() {
return this.zone
getMap() {
return this.map
}
setPositionX(positionX: number) {