Renamed zone > map
This commit is contained in:
@ -3,7 +3,7 @@ import { randomUUID } from 'node:crypto'
|
||||
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import { Character } from './character'
|
||||
import { Zone } from './zone'
|
||||
import { Map } from './map'
|
||||
|
||||
import { BaseEntity } from '#application/base/baseEntity'
|
||||
import { UUID } from '#application/types'
|
||||
@ -17,7 +17,7 @@ export class Chat extends BaseEntity {
|
||||
character!: Character
|
||||
|
||||
@ManyToOne({ deleteRule: 'cascade' })
|
||||
zone!: Zone
|
||||
map!: Map
|
||||
|
||||
@Property()
|
||||
message!: string
|
||||
@ -43,13 +43,13 @@ export class Chat extends BaseEntity {
|
||||
return this.character
|
||||
}
|
||||
|
||||
setZone(zone: Zone) {
|
||||
this.zone = zone
|
||||
setMap(map: Map) {
|
||||
this.map = map
|
||||
return this
|
||||
}
|
||||
|
||||
getZone() {
|
||||
return this.zone
|
||||
getMap() {
|
||||
return this.map
|
||||
}
|
||||
|
||||
setMessage(message: string) {
|
||||
|
Reference in New Issue
Block a user