evennia.contrib.game_systems.storage.storage

class evennia.contrib.game_systems.storage.storage.StorageCommand(**kwargs)[源代码]

基类:evennia.commands.default.muxcommand.MuxCommand

Shared functionality for storage-related commands

at_pre_cmd()[源代码]

Check if the current location is tagged as a storage location Every stored object is tagged on storage, and untagged on retrieval

返回

bool – True if the command is to be stopped here

aliases = []
help_category = 'general'
key = 'command'
lock_storage = 'cmd:all();'
search_index_entry = {'aliases': '', 'category': 'general', 'key': 'command', 'no_prefix': ' ', 'tags': '', 'text': '\n Shared functionality for storage-related commands\n '}
class evennia.contrib.game_systems.storage.storage.CmdStore(**kwargs)[源代码]

基类:evennia.contrib.game_systems.storage.storage.StorageCommand

Store something in a storage location.

Usage:

store <obj>

key = 'store'
locks = 'cmd:all()'
help_category = 'storage'
func()[源代码]

Find the item in question to store, then store it

aliases = []
lock_storage = 'cmd:all()'
search_index_entry = {'aliases': '', 'category': 'storage', 'key': 'store', 'no_prefix': ' ', 'tags': '', 'text': '\n Store something in a storage location.\n\n Usage:\n store <obj>\n '}
class evennia.contrib.game_systems.storage.storage.CmdRetrieve(**kwargs)[源代码]

基类:evennia.contrib.game_systems.storage.storage.StorageCommand

Retrieve something from a storage location.

Usage:

retrieve <obj>

key = 'retrieve'
locks = 'cmd:all()'
help_category = 'storage'
func()[源代码]

Retrieve the item in question if possible

aliases = []
lock_storage = 'cmd:all()'
search_index_entry = {'aliases': '', 'category': 'storage', 'key': 'retrieve', 'no_prefix': ' ', 'tags': '', 'text': '\n Retrieve something from a storage location.\n\n Usage:\n retrieve <obj>\n '}
class evennia.contrib.game_systems.storage.storage.CmdList(**kwargs)[源代码]

基类:evennia.contrib.game_systems.storage.storage.StorageCommand

List items in the storage location.

Usage:

list

key = 'list'
locks = 'cmd:all()'
help_category = 'storage'
func()[源代码]

List items in the storage

aliases = []
lock_storage = 'cmd:all()'
search_index_entry = {'aliases': '', 'category': 'storage', 'key': 'list', 'no_prefix': ' ', 'tags': '', 'text': '\n List items in the storage location.\n\n Usage:\n list\n '}
class evennia.contrib.game_systems.storage.storage.CmdStorage(**kwargs)[源代码]

基类:evennia.commands.default.muxcommand.MuxCommand

Make the current location a storage room, or delete it as a storage and move all stored objects into the room contents.

Shared storage locations can be used by all interchangeably.

The default storage identifier will be its primary key in the database, but you can supply a new one in case you want linked storages.

Usage:

storage [= [storage identifier]] storage/shared [= [storage identifier]] storage/delete

key = '@storage'
locks = 'cmd:perm(Builder)'
func()[源代码]

Set the storage location.

aliases = []
help_category = 'general'
lock_storage = 'cmd:perm(Builder)'
search_index_entry = {'aliases': '', 'category': 'general', 'key': '@storage', 'no_prefix': 'storage ', 'tags': '', 'text': '\n Make the current location a storage room, or delete it as a storage and move all stored objects into the room contents.\n\n Shared storage locations can be used by all interchangeably.\n\n The default storage identifier will be its primary key in the database, but you can supply a new one in case you want linked storages.\n\n Usage:\n storage [= [storage identifier]]\n storage/shared [= [storage identifier]]\n storage/delete\n '}
class evennia.contrib.game_systems.storage.storage.StorageCmdSet(cmdsetobj=None, key=None)[源代码]

基类:evennia.commands.cmdset.CmdSet

CmdSet for all storage-related commands

at_cmdset_creation()[源代码]

Hook method - this should be overloaded in the inheriting class, and should take care of populating the cmdset by use of self.add().

path = 'evennia.contrib.game_systems.storage.storage.StorageCmdSet'