コード例 #1
0
/**
 * @ignore yes
 */
void setup() {
  set_short("report handler");
  add_property("determinate", "the ");
  set_long("This is a rather tacky statue of a woman holding "
    "a sword and some wonky scales.\n");
  if(file_size(NEWCASES) > -1) {
    new_cases = restore_variable(read_file(NEWCASES));
  }
  if(file_size(RECENT) > -1) {
    recent_cases = restore_variable(read_file(RECENT));
  }
} /* setup() */
コード例 #2
0
ファイル: savable.c プロジェクト: rmanis/lil
void load_inventory() {
    mapping *inv;
    mapping serial;

    destruct_inventory();

    if (strlen(inventory)) {
        inv = restore_variable(inventory);
        foreach (serial in make_inventory(inv)) {
            serial->move(this_object());
        }
    }