1
0
forked from noxious/server

Added getter & setter functions to all entities

This commit is contained in:
2024-12-26 15:15:18 +01:00
parent 6a27ccff31
commit 691abb7c4f
33 changed files with 1500 additions and 168 deletions

View File

@ -23,4 +23,58 @@ export class CharacterHair extends BaseEntity {
@OneToMany(() => Character, (character) => character.characterHair)
characters = new Collection<Character>(this)
setId(id: number) {
this.id = id
return this
}
getId() {
return this.id
}
setName(name: string) {
this.name = name
return this
}
getName() {
return this.name
}
setGender(gender: CharacterGender) {
this.gender = gender
return this
}
getGender() {
return this.gender
}
setIsSelectable(isSelectable: boolean) {
this.isSelectable = isSelectable
return this
}
getIsSelectable() {
return this.isSelectable
}
setSprite(sprite: Sprite) {
this.sprite = sprite
return this
}
getSprite() {
return this.sprite
}
setCharacters(characters: Collection<Character>) {
this.characters = characters
return this
}
getCharacters() {
return this.characters
}
}