12 lines
319 B
Python
12 lines
319 B
Python
from smnp.function.model import Function
|
|
from smnp.function.signature import signature
|
|
from smnp.type.model import Type
|
|
from smnp.type.signature.matcher.type import ofType
|
|
|
|
_signature = signature(ofType(Type.SOUND))
|
|
def _function(env, sound):
|
|
sound.value.play()
|
|
|
|
|
|
function = Function(_signature, _function, 'play')
|