mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 23:06:31 +01:00
Update the xyzgrid doc to clarify a few things
This commit is contained in:
parent
f7e947901f
commit
514b1b84d5
2 changed files with 20 additions and 4 deletions
|
|
@ -867,6 +867,13 @@ LEGEND = {
|
|||
|
||||
}
|
||||
|
||||
XYMAP_DATA = {
|
||||
# ...
|
||||
"map": MAPSTR,
|
||||
"legend": LEGEND
|
||||
# ...
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Moving west from `(1,0)` will bring you to `(1,4)` of MapA, and moving east from
|
||||
|
|
@ -966,6 +973,7 @@ PROTOTYPES = {
|
|||
|
||||
XYMAP_DATA = {
|
||||
# ...
|
||||
"map": MAPSTR,
|
||||
"prototypes": PROTOTYPES
|
||||
# ...
|
||||
}
|
||||
|
|
@ -997,6 +1005,12 @@ grid? You can, by adding the following to your `mygame/server/conf/settings.py`:
|
|||
XYZROOM_PARENT_PROTOTYPE_OVERRIDE = {"typeclass": "myxyzroom.MyXYZRoom"}
|
||||
XYZEXIT_PARENT_PROTOTYPE_OVERRIDE = {...}
|
||||
|
||||
|
||||
> If you override the typeclass in your prototypes, the typeclass used **MUST**
|
||||
> inherit from `XYZRoom` and/or `XYZExit`. The `BASE_ROOM_TYPECLASS` and
|
||||
> `BASE_EXIT_TYPECLASS` settings will not help - these are still useful for
|
||||
> non-xyzgrid rooms/exits though.
|
||||
|
||||
Only add what you want to change - these dicts will _extend_ the default parent
|
||||
prototypes rather than replace them. As long as you define your map's prototypes
|
||||
to use a `prototype_parent` of `"xyz_room"` and/or `"xyz_exit"`, your changes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue