<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Man extensions - Revision history</title>
		<link>http://wiki.lostsouls.org/w/index.php?title=Man_extensions&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.8.2</generator>
		<lastBuildDate>Sun, 03 May 2026 11:32:07 GMT</lastBuildDate>
		<item>
			<title>Laine at 21:46, 11 June 2007</title>
			<link>http://wiki.lostsouls.org/w/index.php?title=Man_extensions&amp;diff=3985&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Files==&lt;br /&gt;
&lt;br /&gt;
 /mod/basic/extensions.c&lt;br /&gt;
 /std/extension.c&lt;br /&gt;
 /obj/extensions/&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
The extensions mechanism is a general method of attaching functionality&lt;br /&gt;
modules to objects.  It is specifically intended to replace the (extremely&lt;br /&gt;
troublesome) method of adding functionality by multiple inheritance.&lt;br /&gt;
&lt;br /&gt;
Generally, all you need to do in order to use extensions, as a content&lt;br /&gt;
developer, is to place a statement like the following in a configure():&lt;br /&gt;
&lt;br /&gt;
    add_extension(LS_Extension(&amp;quot;post_office&amp;quot;));&lt;br /&gt;
&lt;br /&gt;
This example is how you add post office functionality to a room.  The&lt;br /&gt;
LS_Extension() macro is from master.h (do #include &amp;lt;master.h&amp;gt;), and should&lt;br /&gt;
always be used instead of literal pathnames.&lt;br /&gt;
&lt;br /&gt;
Extensions are supported by anything that inherits /std/item, /std/room,&lt;br /&gt;
/std/daemon, or /mod/character/body.&lt;br /&gt;
&lt;br /&gt;
The lib's supply of extension modules is located in /obj/extensions, which&lt;br /&gt;
is the directory referred to by the LS_Extension() macro.&lt;br /&gt;
&lt;br /&gt;
In their internals, extensions work in a matter fairly similar to the&lt;br /&gt;
affiliation support.  More information will be forthcoming at a later date.&lt;br /&gt;
The curious are referred to the code; the post office extension is a very&lt;br /&gt;
simple, straightforward example.&lt;/div&gt;</description>
			<pubDate>Mon, 11 Jun 2007 21:46:22 GMT</pubDate>			<dc:creator>Laine</dc:creator>			<comments>http://wiki.lostsouls.org/Talk:Man_extensions</comments>		</item>
	</channel>
</rss>