Move 'sound' module
This commit is contained in:
11
smnp/module/sound/function/play.py
Normal file
11
smnp/module/sound/function/play.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from smnp.library.model import Function
|
||||
from smnp.library.signature import signature, ofType
|
||||
from smnp.type.model import Type
|
||||
|
||||
|
||||
_signature = signature(ofType(Type.SOUND))
|
||||
def _function(env, sound):
|
||||
sound.value.play()
|
||||
|
||||
|
||||
function = Function(_signature, _function, 'play')
|
||||
Reference in New Issue
Block a user