mudsys.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: mudsys</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>mudsys</strong></big></big></font></td
  8. ><td align=right valign=bottom
  9. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br>(built-in)</font></td></tr></table>
  10. <p><tt>The&nbsp;mudsys&nbsp;module,&nbsp;for&nbsp;all&nbsp;MUD&nbsp;system&nbsp;utils.</tt></p>
  11. <p>
  12. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  13. <tr bgcolor="#eeaa77">
  14. <td colspan=3 valign=bottom>&nbsp;<br>
  15. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  16. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  17. <td width="100%"><dl><dt><a name="-account_creating"><strong>account_creating</strong></a>(...)</dt><dd><tt><a href="#-account_creating">account_creating</a>(name)<br>
  18. &nbsp;<br>
  19. returns&nbsp;whether&nbsp;an&nbsp;account&nbsp;with&nbsp;the&nbsp;name&nbsp;is&nbsp;creating.</tt></dd></dl>
  20. <dl><dt><a name="-account_exists"><strong>account_exists</strong></a>(...)</dt><dd><tt><a href="#-account_exists">account_exists</a>(name)<br>
  21. &nbsp;<br>
  22. Returns&nbsp;whether&nbsp;an&nbsp;account&nbsp;with&nbsp;the&nbsp;name&nbsp;exists.</tt></dd></dl>
  23. <dl><dt><a name="-add_acct_method"><strong>add_acct_method</strong></a>(...)</dt><dd><tt><a href="#-add_acct_method">add_acct_method</a>(name,&nbsp;method)<br>
  24. &nbsp;<br>
  25. Adds&nbsp;a&nbsp;function&nbsp;or&nbsp;property&nbsp;to&nbsp;the&nbsp;Account&nbsp;class.</tt></dd></dl>
  26. <dl><dt><a name="-add_char_method"><strong>add_char_method</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;add_acct_method&nbsp;for&nbsp;characters.</tt></dd></dl>
  27. <dl><dt><a name="-add_cmd"><strong>add_cmd</strong></a>(...)</dt><dd><tt><a href="#-add_cmd">add_cmd</a>(name,&nbsp;shorthand,&nbsp;cmd_func,&nbsp;user_group,&nbsp;interrupts_action)<br>
  28. &nbsp;<br>
  29. Add&nbsp;a&nbsp;new&nbsp;command&nbsp;to&nbsp;the&nbsp;master&nbsp;command&nbsp;table.&nbsp;If&nbsp;a&nbsp;preferred&nbsp;shorthand<br>
  30. exists,&nbsp;e.g.,&nbsp;'n'&nbsp;for&nbsp;'north',&nbsp;it&nbsp;can&nbsp;be&nbsp;specified.&nbsp;Otherwise,&nbsp;shorthand<br>
  31. should&nbsp;be&nbsp;None.&nbsp;Command&nbsp;functions&nbsp;take&nbsp;three&nbsp;arguments:&nbsp;a&nbsp;character<br>
  32. issuing&nbsp;the&nbsp;command,&nbsp;the&nbsp;command&nbsp;name,&nbsp;and&nbsp;a&nbsp;string&nbsp;argument&nbsp;supplied<br>
  33. to&nbsp;the&nbsp;command.&nbsp;Commands&nbsp;must&nbsp;be&nbsp;tied&nbsp;to&nbsp;a&nbsp;specific&nbsp;user&nbsp;group,&nbsp;and&nbsp;they<br>
  34. can&nbsp;optionally&nbsp;interupt&nbsp;character&nbsp;actions.</tt></dd></dl>
  35. <dl><dt><a name="-add_cmd_check"><strong>add_cmd_check</strong></a>(...)</dt><dd><tt><a href="#-add_cmd_check">add_cmd_check</a>(name,&nbsp;check_func)<br>
  36. &nbsp;<br>
  37. Add&nbsp;a&nbsp;new&nbsp;command&nbsp;check&nbsp;to&nbsp;a&nbsp;registered&nbsp;command.&nbsp;Check&nbsp;functions&nbsp;take<br>
  38. two&nbsp;arguments:&nbsp;the&nbsp;character&nbsp;issuing&nbsp;the&nbsp;command,&nbsp;and&nbsp;the&nbsp;command&nbsp;name.<br>
  39. If&nbsp;a&nbsp;check&nbsp;fails,&nbsp;it&nbsp;should&nbsp;return&nbsp;False&nbsp;and&nbsp;send&nbsp;the&nbsp;character&nbsp;a<br>
  40. message&nbsp;why.</tt></dd></dl>
  41. <dl><dt><a name="-add_exit_method"><strong>add_exit_method</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;add_acct_method&nbsp;for&nbsp;exits.</tt></dd></dl>
  42. <dl><dt><a name="-add_help"><strong>add_help</strong></a>(...)</dt><dd><tt><a href="#-add_help">add_help</a>(keywords,&nbsp;info,&nbsp;user_groups='',&nbsp;related='')<br>
  43. &nbsp;<br>
  44. Add&nbsp;a&nbsp;new,&nbsp;non-persistent&nbsp;helpfile&nbsp;to&nbsp;the&nbsp;mud's&nbsp;help&nbsp;database.</tt></dd></dl>
  45. <dl><dt><a name="-add_obj_method"><strong>add_obj_method</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;add_acct_method&nbsp;for&nbsp;objects.</tt></dd></dl>
  46. <dl><dt><a name="-add_room_method"><strong>add_room_method</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;add_acct_method&nbsp;for&nbsp;rooms.</tt></dd></dl>
  47. <dl><dt><a name="-add_sock_method"><strong>add_sock_method</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;add_acct_method&nbsp;for&nbsp;sockets.</tt></dd></dl>
  48. <dl><dt><a name="-add_worn_type"><strong>add_worn_type</strong></a>(...)</dt><dd><tt><a href="#-add_worn_type">add_worn_type</a>(type,&nbsp;postypes)<br>
  49. &nbsp;<br>
  50. Register&nbsp;a&nbsp;new&nbsp;type&nbsp;of&nbsp;worn&nbsp;item.&nbsp;Postypes&nbsp;is&nbsp;a&nbsp;comma-separated&nbsp;list&nbsp;of<br>
  51. body&nbsp;position&nbsp;types&nbsp;this&nbsp;object&nbsp;must&nbsp;be&nbsp;equipped&nbsp;to&nbsp;e.g.,&nbsp;<br>
  52. shirt&nbsp;:&nbsp;torso,&nbsp;arm,&nbsp;arm.</tt></dd></dl>
  53. <dl><dt><a name="-attach_account_socket"><strong>attach_account_socket</strong></a>(...)</dt><dd><tt><a href="#-attach_account_socket">attach_account_socket</a>(acct,&nbsp;sock)<br>
  54. &nbsp;<br>
  55. Link&nbsp;a&nbsp;loaded&nbsp;account&nbsp;to&nbsp;a&nbsp;connected&nbsp;socket.</tt></dd></dl>
  56. <dl><dt><a name="-attach_char_socket"><strong>attach_char_socket</strong></a>(...)</dt><dd><tt><a href="#-attach_char_socket">attach_char_socket</a>(ch,&nbsp;sock)<br>
  57. &nbsp;<br>
  58. Link&nbsp;a&nbsp;loaded&nbsp;character&nbsp;to&nbsp;a&nbsp;connected&nbsp;socket.</tt></dd></dl>
  59. <dl><dt><a name="-can_edit_zone"><strong>can_edit_zone</strong></a>(...)</dt><dd><tt><a href="#-can_edit_zone">can_edit_zone</a>(ch,&nbsp;zone)<br>
  60. &nbsp;<br>
  61. True&nbsp;or&nbsp;False&nbsp;if&nbsp;a&nbsp;character&nbsp;has&nbsp;permission&nbsp;to&nbsp;edit&nbsp;a&nbsp;zone.</tt></dd></dl>
  62. <dl><dt><a name="-create_account"><strong>create_account</strong></a>(...)</dt><dd><tt><a href="#-create_account">create_account</a>(acctname)<br>
  63. &nbsp;<br>
  64. Returns&nbsp;a&nbsp;new&nbsp;account&nbsp;by&nbsp;the&nbsp;specified&nbsp;name,&nbsp;or&nbsp;None&nbsp;if&nbsp;an&nbsp;account&nbsp;by.<br>
  65. the&nbsp;specified&nbsp;name&nbsp;is&nbsp;already&nbsp;registered&nbsp;or&nbsp;creating.&nbsp;After&nbsp;the&nbsp;accountgeneration&nbsp;process&nbsp;is&nbsp;complete,&nbsp;mudsys.<a href="#-do_register">do_register</a>(acct)&nbsp;must&nbsp;be&nbsp;called.</tt></dd></dl>
  66. <dl><dt><a name="-create_bit"><strong>create_bit</strong></a>(...)</dt><dd><tt><a href="#-create_bit">create_bit</a>(bitvector,&nbsp;bit)<br>
  67. &nbsp;<br>
  68. Creates&nbsp;a&nbsp;new&nbsp;bit&nbsp;on&nbsp;the&nbsp;specified&nbsp;bitvector.</tt></dd></dl>
  69. <dl><dt><a name="-create_bitvector"><strong>create_bitvector</strong></a>(...)</dt><dd><tt>Not&nbsp;yet&nbsp;implemented.</tt></dd></dl>
  70. <dl><dt><a name="-create_player"><strong>create_player</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;mudsys.create_account&nbsp;for&nbsp;player&nbsp;characters.</tt></dd></dl>
  71. <dl><dt><a name="-detach_char_socket"><strong>detach_char_socket</strong></a>(...)</dt><dd><tt><a href="#-detach_char_socket">detach_char_socket</a>(ch)<br>
  72. &nbsp;<br>
  73. Unlink&nbsp;a&nbsp;character&nbsp;from&nbsp;its&nbsp;attached&nbsp;socket.</tt></dd></dl>
  74. <dl><dt><a name="-do_copyover"><strong>do_copyover</strong></a>(...)</dt><dd><tt><a href="#-do_copyover">do_copyover</a>()<br>
  75. &nbsp;<br>
  76. performs&nbsp;a&nbsp;copyover&nbsp;on&nbsp;the&nbsp;mud.</tt></dd></dl>
  77. <dl><dt><a name="-do_disconnect"><strong>do_disconnect</strong></a>(...)</dt><dd><tt><a href="#-do_disconnect">do_disconnect</a>(ch)<br>
  78. &nbsp;<br>
  79. call&nbsp;detach_char_socket,&nbsp;then&nbsp;close&nbsp;the&nbsp;socket.</tt></dd></dl>
  80. <dl><dt><a name="-do_quit"><strong>do_quit</strong></a>(...)</dt><dd><tt><a href="#-do_quit">do_quit</a>(ch)<br>
  81. &nbsp;<br>
  82. Extract&nbsp;a&nbsp;character&nbsp;from&nbsp;game.</tt></dd></dl>
  83. <dl><dt><a name="-do_register"><strong>do_register</strong></a>(...)</dt><dd><tt><a href="#-do_register">do_register</a>(char_or_account)<br>
  84. &nbsp;<br>
  85. Register&nbsp;a&nbsp;PC&nbsp;or&nbsp;account&nbsp;for&nbsp;the&nbsp;first&nbsp;time.&nbsp;Should&nbsp;be&nbsp;called&nbsp;after&nbsp;creation.</tt></dd></dl>
  86. <dl><dt><a name="-do_save"><strong>do_save</strong></a>(...)</dt><dd><tt><a href="#-do_save">do_save</a>(char_or_account)<br>
  87. &nbsp;<br>
  88. Save&nbsp;a&nbsp;character&nbsp;or&nbsp;account's&nbsp;information.</tt></dd></dl>
  89. <dl><dt><a name="-do_shutdown"><strong>do_shutdown</strong></a>(...)</dt><dd><tt><a href="#-do_shutdown">do_shutdown</a>()<br>
  90. &nbsp;<br>
  91. shuts&nbsp;the&nbsp;mud&nbsp;down.</tt></dd></dl>
  92. <dl><dt><a name="-get_help"><strong>get_help</strong></a>(...)</dt><dd><tt><a href="#-get_help">get_help</a>(keyword)<br>
  93. &nbsp;<br>
  94. Returns&nbsp;a&nbsp;tuple&nbsp;of&nbsp;a&nbsp;helpfile's&nbsp;keywords,&nbsp;info,&nbsp;user_groups,&nbsp;and&nbsp;related<br>
  95. or&nbsp;None&nbsp;if&nbsp;the&nbsp;helpfile&nbsp;does&nbsp;not&nbsp;exist.</tt></dd></dl>
  96. <dl><dt><a name="-get_player"><strong>get_player</strong></a>(...)</dt><dd><tt><a href="#-get_player">get_player</a>(name)<br>
  97. &nbsp;<br>
  98. Return&nbsp;a&nbsp;saved&nbsp;character&nbsp;of&nbsp;specified&nbsp;name,&nbsp;or&nbsp;None.</tt></dd></dl>
  99. <dl><dt><a name="-handle_cmd_input"><strong>handle_cmd_input</strong></a>(...)</dt><dd><tt><a href="#-handle_cmd_input">handle_cmd_input</a>(sock,&nbsp;cmd)<br>
  100. &nbsp;<br>
  101. Equivalent&nbsp;to&nbsp;char.Char.act(cmd)</tt></dd></dl>
  102. <dl><dt><a name="-item_add_type"><strong>item_add_type</strong></a>(...)</dt><dd><tt><a href="#-item_add_type">item_add_type</a>(name,&nbsp;type_data)<br>
  103. &nbsp;<br>
  104. Register&nbsp;a&nbsp;new&nbsp;item&nbsp;type&nbsp;and&nbsp;its&nbsp;data.</tt></dd></dl>
  105. <dl><dt><a name="-list_help"><strong>list_help</strong></a>(...)</dt><dd><tt><a href="#-list_help">list_help</a>(keyword='')<br>
  106. &nbsp;<br>
  107. Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;helpfiles&nbsp;that&nbsp;match&nbsp;the&nbsp;specified&nbsp;keyword.&nbsp;If&nbsp;no<br>
  108. keywordi&nbsp;s&nbsp;supplied,&nbsp;return&nbsp;all&nbsp;helpfiles.</tt></dd></dl>
  109. <dl><dt><a name="-list_zone_contents"><strong>list_zone_contents</strong></a>(...)</dt><dd><tt><a href="#-list_zone_contents">list_zone_contents</a>(zone,&nbsp;type)<br>
  110. &nbsp;<br>
  111. Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;the&nbsp;content&nbsp;keys&nbsp;of&nbsp;the&nbsp;given&nbsp;type,&nbsp;for&nbsp;the&nbsp;specified<br>
  112. zone.</tt></dd></dl>
  113. <dl><dt><a name="-load_account"><strong>load_account</strong></a>(...)</dt><dd><tt><a href="#-load_account">load_account</a>(name)<br>
  114. &nbsp;<br>
  115. Return&nbsp;a&nbsp;saved&nbsp;account&nbsp;of&nbsp;specified&nbsp;name,&nbsp;or&nbsp;None.</tt></dd></dl>
  116. <dl><dt><a name="-load_char"><strong>load_char</strong></a>(...)</dt><dd><tt>Alias&nbsp;for&nbsp;mudsys.<a href="#-get_player">get_player</a>(name).</tt></dd></dl>
  117. <dl><dt><a name="-next_uid"><strong>next_uid</strong></a>(...)</dt><dd><tt><a href="#-next_uid">next_uid</a>()<br>
  118. &nbsp;<br>
  119. Returns&nbsp;the&nbsp;next&nbsp;available&nbsp;universal&nbsp;identification&nbsp;number.</tt></dd></dl>
  120. <dl><dt><a name="-password_matches"><strong>password_matches</strong></a>(...)</dt><dd><tt><a href="#-password_matches">password_matches</a>(acct,&nbsp;psswd)<br>
  121. &nbsp;<br>
  122. Returns&nbsp;True&nbsp;or&nbsp;False&nbsp;if&nbsp;the&nbsp;given&nbsp;password&nbsp;matches&nbsp;the&nbsp;account's&nbsp;password.</tt></dd></dl>
  123. <dl><dt><a name="-player_creating"><strong>player_creating</strong></a>(...)</dt><dd><tt><a href="#-player_creating">player_creating</a>(name)<br>
  124. &nbsp;<br>
  125. returns&nbsp;whether&nbsp;a&nbsp;player&nbsp;with&nbsp;the&nbsp;name&nbsp;is&nbsp;creating.</tt></dd></dl>
  126. <dl><dt><a name="-player_exists"><strong>player_exists</strong></a>(...)</dt><dd><tt><a href="#-player_exists">player_exists</a>(name)<br>
  127. &nbsp;<br>
  128. Returns&nbsp;whether&nbsp;a&nbsp;player&nbsp;with&nbsp;the&nbsp;name&nbsp;exists.</tt></dd></dl>
  129. <dl><dt><a name="-register_char_cansee"><strong>register_char_cansee</strong></a>(...)</dt><dd><tt><a href="#-register_char_cansee">register_char_cansee</a>(check_function(observer,&nbsp;observee))<br>
  130. &nbsp;<br>
  131. Register&nbsp;a&nbsp;new&nbsp;check&nbsp;of&nbsp;whether&nbsp;one&nbsp;character&nbsp;can&nbsp;see&nbsp;another.</tt></dd></dl>
  132. <dl><dt><a name="-register_dflt_move_cmd"><strong>register_dflt_move_cmd</strong></a>(...)</dt><dd><tt><a href="#-register_dflt_move_cmd">register_dflt_move_cmd</a>(cmdname)<br>
  133. &nbsp;<br>
  134. registers&nbsp;a&nbsp;new&nbsp;default&nbsp;movement&nbsp;command,&nbsp;e.g.,&nbsp;north</tt></dd></dl>
  135. <dl><dt><a name="-register_exit_cansee"><strong>register_exit_cansee</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;register_char_cansee&nbsp;for&nbsp;exits.</tt></dd></dl>
  136. <dl><dt><a name="-register_move_check"><strong>register_move_check</strong></a>(...)</dt><dd><tt><a href="#-register_move_check">register_move_check</a>(check_func)<br>
  137. &nbsp;<br>
  138. Register&nbsp;a&nbsp;check&nbsp;to&nbsp;perform&nbsp;movement&nbsp;commands.&nbsp;See&nbsp;mudsys.add_cmd_check<br>
  139. for&nbsp;information&nbsp;about&nbsp;command&nbsp;checks.</tt></dd></dl>
  140. <dl><dt><a name="-register_obj_cansee"><strong>register_obj_cansee</strong></a>(...)</dt><dd><tt>Same&nbsp;as&nbsp;register_char_cansee&nbsp;for&nbsp;objects.</tt></dd></dl>
  141. <dl><dt><a name="-remove_cmd"><strong>remove_cmd</strong></a>(...)</dt><dd><tt><a href="#-remove_cmd">remove_cmd</a>(name)<br>
  142. &nbsp;<br>
  143. Removes&nbsp;a&nbsp;command&nbsp;from&nbsp;the&nbsp;master&nbsp;command&nbsp;table.</tt></dd></dl>
  144. <dl><dt><a name="-set_cmd_move"><strong>set_cmd_move</strong></a>(...)</dt><dd><tt><a href="#-set_cmd_move">set_cmd_move</a>(cmd_func)<br>
  145. &nbsp;<br>
  146. Register&nbsp;a&nbsp;player&nbsp;command&nbsp;for&nbsp;handling&nbsp;all&nbsp;default&nbsp;movement&nbsp;commands.<br>
  147. See&nbsp;mudsys.add_cmd&nbsp;for&nbsp;information&nbsp;about&nbsp;commands.</tt></dd></dl>
  148. <dl><dt><a name="-set_password"><strong>set_password</strong></a>(...)</dt><dd><tt><a href="#-set_password">set_password</a>(acct,&nbsp;passwd)<br>
  149. &nbsp;<br>
  150. Set&nbsp;an&nbsp;account's&nbsp;password.</tt></dd></dl>
  151. <dl><dt><a name="-show_prompt"><strong>show_prompt</strong></a>(...)</dt><dd><tt><a href="#-show_prompt">show_prompt</a>(sock)<br>
  152. &nbsp;<br>
  153. Display&nbsp;the&nbsp;default&nbsp;game&nbsp;prompt&nbsp;to&nbsp;the&nbsp;socket.&nbsp;Can&nbsp;be&nbsp;replaced&nbsp;in&nbsp;Python<br>
  154. by&nbsp;assigning&nbsp;a&nbsp;new&nbsp;function&nbsp;to&nbsp;show_prompt.</tt></dd></dl>
  155. <dl><dt><a name="-sys_getval"><strong>sys_getval</strong></a>(...)</dt><dd><tt><a href="#-sys_getval">sys_getval</a>(name)<br>
  156. &nbsp;<br>
  157. returns&nbsp;a&nbsp;value&nbsp;registered&nbsp;in&nbsp;the&nbsp;system&nbsp;settings.</tt></dd></dl>
  158. <dl><dt><a name="-sys_getvar"><strong>sys_getvar</strong></a>(...)</dt><dd><tt>Alias&nbsp;to&nbsp;mudsys.sys_getval</tt></dd></dl>
  159. <dl><dt><a name="-sys_setval"><strong>sys_setval</strong></a>(...)</dt><dd><tt>set_sysval(name,&nbsp;val)<br>
  160. &nbsp;<br>
  161. sets&nbsp;a&nbsp;value&nbsp;registered&nbsp;in&nbsp;the&nbsp;system&nbsp;settings.</tt></dd></dl>
  162. <dl><dt><a name="-sys_setvar"><strong>sys_setvar</strong></a>(...)</dt><dd><tt>Alias&nbsp;to&nbsp;mudsys.sys_setval</tt></dd></dl>
  163. <dl><dt><a name="-try_enter_game"><strong>try_enter_game</strong></a>(...)</dt><dd><tt><a href="#-try_enter_game">try_enter_game</a>(ch)<br>
  164. &nbsp;<br>
  165. Tries&nbsp;to&nbsp;add&nbsp;a&nbsp;character&nbsp;the&nbsp;game&nbsp;world.</tt></dd></dl>
  166. <dl><dt><a name="-world_add_type"><strong>world_add_type</strong></a>(...)</dt><dd><tt><a href="#-world_add_type">world_add_type</a>(typename,&nbsp;class_data)<br>
  167. &nbsp;<br>
  168. Registers&nbsp;a&nbsp;new&nbsp;type&nbsp;to&nbsp;the&nbsp;world&nbsp;database.&nbsp;Like,&nbsp;e.g.,&nbsp;mob,&nbsp;obj,&nbsp;and<br>
  169. room&nbsp;prototypes.&nbsp;Assumes&nbsp;class&nbsp;has&nbsp;a&nbsp;store&nbsp;and&nbsp;setKey&nbsp;method.&nbsp;Init<br>
  170. method&nbsp;should&nbsp;take&nbsp;one&nbsp;optional&nbsp;argument:&nbsp;a&nbsp;storage&nbsp;set&nbsp;to&nbsp;parse&nbsp;the<br>
  171. type&nbsp;data&nbsp;from,&nbsp;when&nbsp;loaded.</tt></dd></dl>
  172. <dl><dt><a name="-world_get_type"><strong>world_get_type</strong></a>(...)</dt><dd><tt><a href="#-world_get_type">world_get_type</a>(typename,&nbsp;key)<br>
  173. &nbsp;<br>
  174. Returns&nbsp;registered&nbsp;entry&nbsp;of&nbsp;the&nbsp;specified&nbsp;type&nbsp;from&nbsp;the&nbsp;world&nbsp;database.<br>
  175. Assumes&nbsp;it&nbsp;is&nbsp;a&nbsp;python&nbsp;type,&nbsp;and&nbsp;not&nbsp;a&nbsp;C&nbsp;type.&nbsp;If&nbsp;no&nbsp;type&nbsp;exists<br>
  176. return&nbsp;None.</tt></dd></dl>
  177. <dl><dt><a name="-world_put_type"><strong>world_put_type</strong></a>(...)</dt><dd><tt><a href="#-world_put_type">world_put_type</a>(typename,&nbsp;key,&nbsp;data)<br>
  178. &nbsp;<br>
  179. Put&nbsp;and&nbsp;save&nbsp;an&nbsp;entry&nbsp;of&nbsp;the&nbsp;specified&nbsp;type&nbsp;to&nbsp;the&nbsp;world&nbsp;database.</tt></dd></dl>
  180. <dl><dt><a name="-world_remove_type"><strong>world_remove_type</strong></a>(...)</dt><dd><tt><a href="#-world_remove_type">world_remove_type</a>(typename,&nbsp;key)<br>
  181. &nbsp;<br>
  182. Remove&nbsp;and&nbsp;return&nbsp;an&nbsp;entry&nbsp;from&nbsp;the&nbsp;world&nbsp;database,&nbsp;or&nbsp;None.</tt></dd></dl>
  183. <dl><dt><a name="-world_save_type"><strong>world_save_type</strong></a>(...)</dt><dd><tt><a href="#-world_save_type">world_save_type</a>(typename,&nbsp;key)<br>
  184. &nbsp;<br>
  185. Saves&nbsp;an&nbsp;entry&nbsp;in&nbsp;the&nbsp;world&nbsp;database&nbsp;if&nbsp;it&nbsp;exists.</tt></dd></dl>
  186. </td></tr></table>
  187. </body></html>