本文整理汇总了PHP中Inventory::drop方法的典型用法代码示例。如果您正苦于以下问题:PHP Inventory::drop方法的具体用法?PHP Inventory::drop怎么用?PHP Inventory::drop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Inventory
的用法示例。
在下文中一共展示了Inventory::drop方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Exits
$exits = new Exits();
list($response->action, $response->data) = $exits->go_to($verb);
break;
case __('INVENTORY_VERB'):
$inventory = new Inventory();
list($response->action, $response->data) = $inventory->show();
break;
case __('LOOK_VERB'):
$room = new Room();
list($response->action, $response->data) = $room->look($words);
break;
case __('TAKE_VERB'):
$room = new Room();
list($response->action, $response->data) = $room->take($words);
break;
case __('TALK_VERB'):
$talk = new Talk();
list($response->action, $response->data) = $talk->with($words);
break;
case __('DROP_VERB'):
$inventory = new Inventory();
list($response->action, $response->data) = $inventory->drop($words);
break;
default:
// chat
savechat(CURRENT_ROOM, $data);
$response->action = 'chat';
break;
}
file_put_contents("profiler.txt", memory_get_usage() . ' => ' . (microtime(1) - $time));
print_r(json_encode($response));