banned/gamemodes.py.example
Ryan Schmidt 8bb12f73e6 Update gamemodes.py.example
Old file was out-of-date wrt recent changes. Add in missing imports and fix the do not edit warning to be less wonky. Also add in skeleton example gamemode
2016-04-05 13:46:26 -07:00

27 lines
836 B
Plaintext

# To add new game modes, rename this file to 'gamemodes.py' then add them in
from src.gamemodes import (GameMode, game_mode, reset_roles)
import src.settings as var
from src.utilities import *
from src.messages import messages
from src import events
####################################################################
# DO NOT EDIT ANYTHING ABOVE THIS LINE, ADD CUSTOM GAMEMODES BELOW #
####################################################################
@game_mode("mymode", minp=4, maxp=24, likelihood=5)
class MyMode(GameMode):
"""Example mode. This doesn't do anything special yet."""
def __init__(self, arg=""):
super().__init__(arg)
# Put gamemode settings here
def startup(self):
# Register events here
pass
def teardown(self):
# Unregister events here
pass