plugin_character_interface Struct Reference

#include <plugin.h>

Collaboration diagram for plugin_character_interface:

Collaboration graph
[legend]

Data Fields

const char *(* attr_get )(struct character *ch, const char *name)
 get an attribute on a character.
int(* attr_set )(struct character *ch, const char *name, const char *value)
 set an attribute on a character.
struct character *(* get )(unsigned character_id)
 find a character by id and return it.
struct character *(* new )(void)
 create a new character with next available id.
void(* put )(struct character *ch)
 reduce reference count on a character
int(* save )(struct character *ch)
 save a character to disk (only if it is dirty).

Detailed Description

Definition at line 96 of file plugin.h.


Field Documentation

const char*(* plugin_character_interface::attr_get)(struct character *ch, const char *name)

get an attribute on a character.

value is temporary and may disappear if the character is flushed, changed or attr_get() is called again.

int(* plugin_character_interface::attr_set)(struct character *ch, const char *name, const char *value)

set an attribute on a character.

struct character*(* plugin_character_interface::get)(unsigned character_id) [read]

find a character by id and return it.

increases reference count on a character.

struct character*(* plugin_character_interface::new)(void) [read]

create a new character with next available id.

increases reference count on a character.

reduce reference count on a character

save a character to disk (only if it is dirty).


The documentation for this struct was generated from the following file:

Generated on Mon Dec 28 09:03:38 2009 for boris by  doxygen 1.5.8