webmcp
diff framework/env/slot/get_state_table_of.lua @ 0:9fdfb27f8e67
Version 1.0.0
author | jbe/bsw |
---|---|
date | Sun Oct 25 12:00:00 2009 +0100 (2009-10-25) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/framework/env/slot/get_state_table_of.lua Sun Oct 25 12:00:00 2009 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +--[[-- 1.5 +state_table = -- table for saving the slot's state 1.6 +slot.get_state_table_of( 1.7 + slot_ident -- name of a slot 1.8 +) 1.9 + 1.10 +This function returns a table, holding state information of the named slot. To change the state information the returned table may be modified. 1.11 + 1.12 +--]]-- 1.13 + 1.14 +function slot.get_state_table_of(slot_ident) 1.15 + return slot._data[slot_ident].state_table 1.16 +end