for now removed card class from hirarchy and added possibillity to render sprites on screen
This commit is contained in:
18
Game_Client/Classes/Objects/Cards/SpellCard.py
Normal file
18
Game_Client/Classes/Objects/Cards/SpellCard.py
Normal file
@ -0,0 +1,18 @@
|
||||
import json
|
||||
from Classes.Objects.Cards.Card import Card
|
||||
|
||||
|
||||
class SpellCard(Card):
|
||||
__description:str
|
||||
|
||||
def __init__(self, asset:str):
|
||||
data = json.load(open(asset))
|
||||
|
||||
Card.__init__(data["name"], data["image"])
|
||||
self.__description = data["description"]
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
||||
def getDescription(self):
|
||||
return self.__description
|
Reference in New Issue
Block a user