key.c

lima-1.0b5/lib/std/key.c · 510 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. */

inherit OBJ;
inherit M_GETTABLE;

string key_type;


int is_key(){ return 1; }

int indirect_lock_obj_with_obj() { return 1; }
int indirect_unlock_obj_with_obj() { return 1; }

void set_key_type( string key_t ){ key_type = key_t; }

mixed get_key_type(){ return key_type; }

void mudlib_setup()
{
    set_id("key");
}

mapping lpscript_attributes()
{
  return ([
    "keytype" : ({ LPSCRIPT_STRING, "setup", "set_key_type" }),
  ]);
}

Site Stats

Snippets: 1791
Codebases: 571