########################################################################
#	Hello Worlds - Libre 3D RPG game.
#	Copyright (C) 2020  CYBERDEViL
#
#	This file is part of Hello Worlds.
#
#	Hello Worlds is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	Hello Worlds is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
########################################################################


from core.db import Players, GenericSpawnData, CharacterData
from core.models import PlayerStatsModel

class Character:
	def __init__(self, characterData, spawnData):
		self._characterData = characterData
		self._spawnData = spawnData
		self._stats = PlayerStatsModel(self._characterData.stats)

	""" Expose dynamic attributes
	"""
	@property
	def stats(self): return self._stats

	""" Expose CharacterData
	"""
	@property
	def id(self): return self._characterData.id
	@property
	def name(self): return self._characterData.name
	@property
	def file(self): return self._characterData.file
	@property
	def speciesId(self): return self._characterData.speciesId

	""" Expose SpawnData
	"""
	@property
	def spawnData(self): return self._spawnData

