ssbu_lokrez/lokrez/games/__init__.py

40 lines
1.0 KiB
Python
Raw Normal View History

2021-03-03 03:09:18 -05:00
# =============================================================================
# -----------------------------------------------------------------------------
class Character:
"""Infos needed about a Smash character"""
2021-03-03 03:09:18 -05:00
def __init__(
self,
name,
codenames,
2021-03-03 03:09:18 -05:00
smashggid = None,
res_urls = {},
):
self.res_urls = res_urls
self.smashggid = smashggid
self.name = name
self.codenames = codenames
def __str__(self):
return self.name
2021-03-03 03:09:18 -05:00
# -----------------------------------------------------------------------------
class Game:
def __init__(
self,
name,
fullname,
aliases,
smashggid = None,
):
self.name = name
self.fullname = fullname
self.aliases = aliases
self.smashggid = smashggid
def list_names(self):
return [self.name] + [self.fullname] + self.aliases
def __str__(self):
return self.name