TrackManiaControl/application/core/FML/Types/Playable.php

47 lines
740 B
PHP
Raw Normal View History

<?php
namespace FML\Types;
/**
2014-01-12 00:51:46 +01:00
* Interface for Elements with Media Attributes
*
* @author steeffeen
*/
interface Playable {
/**
2013-12-31 02:55:19 +01:00
* Set Data
*
2014-01-12 00:51:46 +01:00
* @param string $data Media Url
*/
public function setData($data);
/**
2013-12-31 02:55:19 +01:00
* Set Play
*
2014-01-12 00:51:46 +01:00
* @param bool $play Whether the Control should start playing automatically
*/
public function setPlay($play);
/**
2013-12-31 02:55:19 +01:00
* Set Looping
*
2014-01-12 00:51:46 +01:00
* @param bool $looping Whether the Control should play looping
*/
public function setLooping($looping);
/**
2013-12-31 02:55:19 +01:00
* Set Music
*
2014-01-12 00:51:46 +01:00
* @param bool $music Whether the Control represents Background Music
*/
public function setMusic($music);
/**
2013-12-31 02:55:19 +01:00
* Set Volume
*
2014-01-12 00:51:46 +01:00
* @param float $volume Media Volume
*/
public function setVolume($volume);
}