forked from noxious/server
Renamed zone > map
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user