1
0
forked from noxious/server

Added update & delete rules to entities

This commit is contained in:
2025-01-01 20:44:36 +01:00
parent 11d30351ba
commit 465219276d
16 changed files with 66 additions and 114 deletions

View File

@ -32,7 +32,7 @@ export class Character extends BaseEntity {
// Position
@ManyToOne()
zone!: Zone
zone!: Zone // @TODO: Update to spawn point when current zone is not found
@Property()
positionX = 0
@ -44,10 +44,10 @@ export class Character extends BaseEntity {
rotation = 0
// Customization
@ManyToOne()
@ManyToOne({ deleteRule: 'set null' })
characterType?: CharacterType | null | undefined
@ManyToOne()
@ManyToOne({ deleteRule: 'set null' })
characterHair?: CharacterHair | null | undefined
// Inventory