m_valuable.c
lima-1.0b5/lib/std/modules/m_valuable.c · 368 B
From the archive lima-1.0b5+driver.tar.gz
Download the archive « Back to the archive contents
/* Do not remove the headers from this file! see /USAGE for more info. */
// The following is an attempt at a value module.
//
int object_value = 0;
void set_value(int value)
{
object_value = value;
}
int query_value()
{
return object_value;
}
mapping lpscript_attributes() {
return ([
"value" : ({ LPSCRIPT_INT, "setup", "set_value" }),
]);
}