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

@ -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) {