api.md: change 'Your World' based on suggestions
This commit is contained in:
parent
f1fddac655
commit
0376705e47
11
docs/api.md
11
docs/api.md
|
@ -151,9 +151,14 @@ on a single item. It can be used to reject placement of an item there.
|
||||||
|
|
||||||
### Your World
|
### Your World
|
||||||
|
|
||||||
Your world lives in `world/[world_name]/__init__.py` and is a class that
|
All code for your world implementation should be placed in a python package in
|
||||||
inherits from `..AutoWorld.World`. The generation progress will automatically
|
the `/worlds` directory. The starting point for the package is `__init.py__`.
|
||||||
pick it up.
|
Conventionally, your world class is placed in that file.
|
||||||
|
|
||||||
|
World classes must inherit from the `World` class in `/worlds/AutoWorld.py`,
|
||||||
|
which can be imported as `..AutoWorld.World` from your package.
|
||||||
|
|
||||||
|
AP will pick up your world automatically due to the `AutoWorld` implementation.
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue