public function play_sound($name) { Game::add_event(["c" => self::$protocol["playSound"], "a" => $name]); }
public function draw_image() { $args = func_get_args(); $path = array_splice($args, 0, 1); Game::add_event(["c" => Game::$protocol["drawImage"], "i" => $path[0], "a" => $args]); }