Factorio: Client in folder, TextClient: always available (#1829)

* Factorio: move Client into world folder

* Factorio: declare Client as Client Component

* FactorioClient: use centralized launch_subprocess

* TextClient: make always available
This commit is contained in:
Fabian Dill
2023-06-25 02:31:25 +02:00
committed by GitHub
parent a96ff8de16
commit 46f2f3d7cd
5 changed files with 588 additions and 552 deletions

View File

@@ -6,7 +6,7 @@ import typing
from BaseClasses import Region, Entrance, Location, Item, Tutorial, ItemClassification
from worlds.AutoWorld import World, WebWorld
from worlds.LauncherComponents import Component, components
from worlds.LauncherComponents import Component, components, Type, launch_subprocess
from worlds.generic import Rules
from .Locations import location_pools, location_table
from .Mod import generate_mod
@@ -18,7 +18,13 @@ from .Technologies import base_tech_table, recipe_sources, base_technology_table
get_science_pack_pools, Recipe, recipes, technology_table, tech_table, factorio_base_id, useless_technologies, \
fluids, stacking_items, valid_ingredients, progressive_rows
components.append(Component("Factorio Client", "FactorioClient"))
def launch_client():
from .Client import launch
launch_subprocess(launch, name="FactorioClient")
components.append(Component("Factorio Client", "FactorioClient", func=launch_client, component_type=Type.CLIENT))
class FactorioWeb(WebWorld):