forked from noxious/server
Almost finalised refactoring
This commit is contained in:
@ -10,7 +10,7 @@ import { MapEventTileTeleport } from './mapEventTileTeleport'
|
||||
|
||||
import { BaseEntity } from '#application/base/baseEntity'
|
||||
import { UUID } from '#application/types'
|
||||
import { placedMapObject } from '#entities/placedMapObject'
|
||||
import { PlacedMapObject } from '#entities/placedMapObject'
|
||||
|
||||
@Entity()
|
||||
export class Map extends BaseEntity {
|
||||
@ -47,8 +47,8 @@ export class Map extends BaseEntity {
|
||||
@OneToMany(() => MapEventTileTeleport, (teleport) => teleport.toMap)
|
||||
mapEventTileTeleports = new Collection<MapEventTileTeleport>(this)
|
||||
|
||||
@OneToMany(() => placedMapObject, (object) => object.map)
|
||||
placedMapObjects = new Collection<placedMapObject>(this)
|
||||
@OneToMany(() => PlacedMapObject, (object) => object.map)
|
||||
placedMapObjects = new Collection<PlacedMapObject>(this)
|
||||
|
||||
@OneToMany(() => Character, (character) => character.map)
|
||||
characters = new Collection<Character>(this)
|
||||
@ -155,7 +155,7 @@ export class Map extends BaseEntity {
|
||||
return this.mapEventTileTeleports
|
||||
}
|
||||
|
||||
setPlacedMapObjects(placedMapObjects: Collection<placedMapObject>) {
|
||||
setPlacedMapObjects(placedMapObjects: Collection<PlacedMapObject>) {
|
||||
this.placedMapObjects = placedMapObjects
|
||||
return this
|
||||
}
|
||||
|
Reference in New Issue
Block a user