<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.lostsouls.org/w/index.php?action=history&amp;feed=atom&amp;title=Man_extensions</id>
		<title>Man extensions - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.lostsouls.org/w/index.php?action=history&amp;feed=atom&amp;title=Man_extensions"/>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_extensions&amp;action=history"/>
		<updated>2026-05-03T11:35:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.8.2</generator>

	<entry>
		<id>http://wiki.lostsouls.org/w/index.php?title=Man_extensions&amp;diff=3985&amp;oldid=prev</id>
		<title>Laine at 21:46, 11 June 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_extensions&amp;diff=3985&amp;oldid=prev"/>
				<updated>2007-06-11T21:46:22Z</updated>
		
		<summary type="html">&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;</summary>
		<author><name>Laine</name></author>	</entry>

	</feed>