about summary refs log tree commit diff stats
path: root/data/maps/the_impressive/connections.txtpb
blob: 08caee856ef9fe697556613e9a5093c9044a171e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
connections {
  from_room: "Lobby"
  to_room: "WM Room"
  door { name: "Front Door" }
}
connections {
  from_room: "WM Room"
  to_room: "W Room"
  door { name: "Big W" }
}
connections {
  from_room: "WM Room"
  to_room: "M Room"
  door { name: "Big M" }
}
connections {
  from_room: "M Room"
  to_room: "M2 Room"
  door { name: "M2 Divider" }
}
connections {
  from_room: "Lobby"
  to_room: "Side Area"
  door { name: "Side Door" }
}
connections {
  from_room: "Side Area"
  to_room: "Green Eye"
  door { name: "Control Center Green Door" }
}
se, etc...) * @todo add the 3rd parameter syntax... */ if (!function_exists('is_callable')) { function is_callable($var, $syntax_only=false) { if ($syntax_only) { /* from The Manual: * If the syntax_only argument is TRUE the function only verifies * that var might be a function or method. It will only reject simple * variables that are not strings, or an array that does not have a * valid structure to be used as a callback. The valid ones are * supposed to have only 2 entries, the first of which is an object * or a string, and the second a string */ return (is_string($var) || (is_array($var) && count($var) == 2 && is_string(end($var)) && (is_string(reset($var)) || is_object(reset($var))))); } else { if (is_string($var)) { return function_exists($var); } else if (is_array($var) && count($var) == 2 && is_string($method = end($var))) { $obj = reset($var); if (is_string($obj)) { $methods = get_class_methods($obj); return (bool)(is_array($methods) && in_array(strtolower($method), $methods)); } else if (is_object($obj)) { return method_exists($obj, $method); } } return false; } } } ?>