<reponame>Nemo3003/cse210-06<gh_stars>0
from game.scripting.action import Action

"""
    Everything that begins must finish up. This terminates the audio and video service
"""

class ReleaseDevicesAction(Action):

    def __init__(self, audio_service, video_service):
        self._audio_service = audio_service
        self._video_service = video_service

    def execute(self, cast, script, callback):
        self._audio_service.release()
        self._video_service.release()

from game.scripting.action import Action

"""
    Everything that begins must finish up. This terminates the audio and video service
"""

class ReleaseDevicesAction(Action):

    def __init__(self, audio_service, video_service):
        self._audio_service = audio_service
        self._video_service = video_service

    def execute(self, cast, script, callback):
        self._audio_service.release()
        self._video_service.release()
Everything that begins must finish up. This terminates the audio and video service