Webworld docs: move gameinfo documentation to their world folders and copy them for webhost use. (#455)

This commit is contained in:
alwaysintreble
2022-05-11 13:05:53 -05:00
committed by GitHub
parent 9e15e754c2
commit 977159e572
91 changed files with 537 additions and 703 deletions

View File

@@ -1,12 +1,33 @@
from typing import NamedTuple, Union
import logging
from BaseClasses import Item
from BaseClasses import Item, Tutorial
from ..AutoWorld import World
from ..AutoWorld import World, WebWorld
from NetUtils import SlotType
class GenericWeb(WebWorld):
advanced_settings = Tutorial('Advanced YAML Guide',
'A guide to reading YAML files and editing them to fully customize your game.',
'English', 'advanced_settings_en.md', 'advanced_settings/en',
['alwaysintreble', 'Alchav'])
commands = Tutorial('Archipelago Server and Client Commands',
'A guide detailing the commands available to the user when participating in an Archipelago session.',
'English', 'commands_en.md', 'commands/en', ['jat2980', 'Ijwu'])
plando = Tutorial('Archipelago Plando Guide', 'A guide to understanding and using plando for your game.',
'English', 'plando_en.md', 'plando/en', ['alwaysintreble', 'Alchav'])
setup = Tutorial('Multiworld Setup Tutorial',
'A guide to setting up the Archipelago software to generate and host multiworld games on your computer.',
'English', 'setup_en.md', 'setup/en', ['alwaysintreble'])
triggers = Tutorial('Archipelago Triggers Guide', 'A guide to setting up and using triggers in your game settings.',
'English', 'triggers_en.md', 'triggers/en', ['alwaysintreble'])
using_website = Tutorial('Archipelago Website User Guide',
'A guide to using the Archipelago website to generate multiworlds or h ost pre-generated multiworlds.',
'English', 'using_website_en.md', 'using_website/en', ['alwaysintreble'])
tutorials = [setup, using_website, commands, advanced_settings, triggers, plando]
class GenericWorld(World):
game = "Archipelago"
topology_present = False
@@ -18,6 +39,7 @@ class GenericWorld(World):
"Server": -2
}
hidden = True
web = GenericWeb()
def generate_early(self):
self.world.player_types[self.player] = SlotType.spectator # mark as spectator