Skip to content
Snippets Groups Projects
Commit 34c71c41 authored by Florian Schröder's avatar Florian Schröder
Browse files

Added doc string to to_dict method of the Effect class

parent 20006ed9
No related branches found
No related tags found
No related merge requests found
Pipeline #48119 passed
......@@ -472,6 +472,11 @@ class Effect:
"""For fire: how much the player still has to extinguish."""
def to_dict(self) -> EffectState:
"""Converts the current object to a dictionary representation.
Returns:
dict: A dictionary representation of the object.
"""
return {
"id": self.uuid,
"type": self.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment