Updated game/ for the ev API. There will likely be some changes happening in the game/folder, in the way new objects are inherited. This should use the API rather than inherit from the basecommand/baseobject modules (these will probably into the example folders as vanilla templates instead).
This commit is contained in:
parent
3466e406f6
commit
88c0087fbd
13 changed files with 66 additions and 43 deletions
|
|
@ -20,11 +20,11 @@ New instances of Objects (inheriting from these typeclasses)
|
|||
are created with src.utils.create.create_object(typeclass, ...)
|
||||
where typeclass is the python path to the class you want to use.
|
||||
"""
|
||||
from src.objects.objects import Object as BaseObject
|
||||
from src.objects.objects import Character as BaseCharacter
|
||||
from src.objects.objects import Room as BaseRoom
|
||||
from src.objects.objects import Exit as BaseExit
|
||||
from src.players.player import Player as BasePlayer
|
||||
from ev import Object as BaseObject
|
||||
from ev import Character as BaseCharacter
|
||||
from ev import Room as BaseRoom
|
||||
from ev import Exit as BaseExit
|
||||
from ev import Player as BasePlayer
|
||||
|
||||
class Object(BaseObject):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ Create this button with
|
|||
Note that if you must drop the button before you can see its messages!
|
||||
"""
|
||||
import random
|
||||
from game.gamesrc.objects.baseobjects import Object
|
||||
from ev import Object
|
||||
from game.gamesrc.scripts.examples import red_button_scripts as scriptexamples
|
||||
from game.gamesrc.commands.examples import cmdset_red_button as cmdsetexamples
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue