Skill
progature.engine.components.Skill
Skill(name)
Skill component contains quest data of each skill in game, This Class is universal interface for Skill all over the app. We just work with this class when we intract with our Skills.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
string
|
The name of skill. |
required |
name
instance-attribute
name = name
as_dict
as_dict()
Returns the dict representation of Skill object.
Returns:
| Type | Description |
|---|---|
dict
|
The representation of the |
Examples:
>>> s = Skill("NAME")
>>> s.as_dict()
{
"name": NAME,
}