light
index
/home/thindil/Projekty/anaria/server/lib/pymodules/light.py

light.py
 
Light item type.

 
Modules
       
auxiliary
event
hooks
mud
mudsock
mudsys
olc
storage
utils

 
Classes
       
LightData

 
class LightData
    Data for light.
 
  Methods defined here:
__init__(self, set=None)
copy(self)
copyTo(self, to)
store(self)

Data and other attributes defined here:
__item_type__ = 'light'

 
Functions
       
__unload__()
remove all hooks.
cmd_lightoff(ch, cmd, arg)
Turn off light source.
cmd_lighton(ch, cmd, arg)
Turn on light source.
dark_room_hook(info)
Replace description of dark room.
light_desc_info(info)
appends light information about an object to the description buffer
when a person looks at it.
light_event(owner, void, info)
event for light source.
lightolc_chooser(sock, data, option)
figure out what we want to edit, and display a prompt.
lightolc_menu(sock, data)
display our menu interface
lightolc_parser(sock, data, choice, arg)
parse out what we want to change a specified field to.
lightolc_to_proto(data)
return a script that will generate relevant info to create this item.
turnoff_light_hook(info)
Turn off light source when player remove it from self.
turnon_light_hook(info)
Turn on light source when player enter world.

 
Data
        __LIGHTOLC_MAXUSAGE__ = 3
__LIGHTOLC_TYPE__ = 1
__LIGHTOLC_USAGE__ = 2
light_type = ['pochodnia', 'latarnia']
lightolc_opt_map = {'1': (1, 'Wybierz typ: '), '2': (2, 'Wprowad\xc5\xba czas u\xc5\xbcywania: '), '3': (3, 'Wprowad\xc5\xba maksymalny czas u\xc5\xbcywania: ')}