Some cleanup. Fixed all examples to match the changes in the states and help systems, also
ran them through pylint to pretty them up. /Griatch
This commit is contained in:
parent
8074617285
commit
84aeabb272
11 changed files with 323 additions and 211 deletions
|
|
@ -3,8 +3,8 @@ This is the base object type/interface that all parents are derived from by
|
|||
default. Each object type sub-classes this class and over-rides methods as
|
||||
needed.
|
||||
|
||||
NOTE: This file should NOT be directly modified. Sub-class the BasicObject
|
||||
class in game/gamesrc/parents/base/basicobject.py and change the
|
||||
NOTE: This file should NOT be directly modified. Sub-class this in
|
||||
your own class in game/gamesrc/parents and change
|
||||
SCRIPT_DEFAULT_OBJECT variable in settings.py to point to the new class.
|
||||
"""
|
||||
from src.script_parents.basicobject import EvenniaBasicObject
|
||||
|
|
@ -18,5 +18,10 @@ def class_factory(source_obj):
|
|||
creates an instance of the class and returns it transparently.
|
||||
|
||||
source_obj: (Object) A reference to the object being scripted (the child).
|
||||
|
||||
Since this is the only place where the object is actually instantiated,
|
||||
this is also the place to put commands you want to act on this object,
|
||||
do this by obj.command_table.add_command('cmd', cmd_def).
|
||||
"""
|
||||
return BasicObject(source_obj)
|
||||
obj = BasicObject(source_obj)
|
||||
return obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue