Wikipedia:Archetype.

psyced's room blueprint generator

net/place/archetype.gen contains the source code of almost all files in net/place in the past, split by ifdefs. each standard room type is just something like (in the case of former storic):

#define PLACE_FILTERS
#define PLACE_HISTORY
#define PLACE_HISTORY_EXPORT
#define PLACE_LOGGING
#define PLACE_STORE_COMMAND
#define PLACE_TOPIC
#define PLACE_TOPIC_COMMAND

#include "archetype.gen"

and place.gen has a large choice of archetypes to inherit from, depending on the configuration of feature choices. thus there are a dozen implementations of, for example, history in the system, but they all use the same source code from net/place/archetype.gen.

archetype.pl is an automation that creates the large choice of archetypes, a selection of important ones at least, the way place.gen will use them, automatically. It is run by psyconf as you install or upgrade psyced.

See also tuning for _path_archetype_place_default, the way to specify a default archetype for all arbitrarily created places.


Implementation: archetype.gen