/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ // Original file Copyright Crytek GMBH or its affiliates, used under license. #ifndef CRYINCLUDE_CRYSCRIPTSYSTEM_SCRIPTBINDINGS_SCRIPTBIND_MOVIE_H #define CRYINCLUDE_CRYSCRIPTSYSTEM_SCRIPTBINDINGS_SCRIPTBIND_MOVIE_H #pragma once #include "IScriptSystem.h" //! Interface to movie system. class CScriptBind_Movie : public CScriptableBase { public: CScriptBind_Movie(IScriptSystem* pScriptSystem, ISystem* pSystem); virtual ~CScriptBind_Movie(); virtual void GetMemoryUsage(ICrySizer* pSizer) const { pSizer->AddObject(this, sizeof(*this)); } //! Movie.PlaySequence(sSequenceName) //! Sequence name. //! Plays the specified sequence. int PlaySequence(IFunctionHandler* pH, const char* sSequenceName); //! Movie.StopSequence(sSequenceName) //! Sequence name. //! Stops the specified sequence. int StopSequence(IFunctionHandler* pH, const char* sSequenceName); //! Movie.AbortSequence(sSequenceName) //! Sequence name. //! Aborts the specified sequence. int AbortSequence(IFunctionHandler* pH, const char* sSequenceName); //! Movie.StopAllSequences() //! Stops all the video sequences. int StopAllSequences(IFunctionHandler* pH); //! Movie.StopAllCutScenes() //! Stops all the cut scenes. int StopAllCutScenes(IFunctionHandler* pH); //! Movie.PauseSequences() //! Pauses all the sequences. int PauseSequences(IFunctionHandler* pH); //! Movie.ResumeSequences() //! Resume all the sequences. int ResumeSequences(IFunctionHandler* pH); private: ISystem* m_pSystem; IMovieSystem* m_pMovieSystem; }; #endif // CRYINCLUDE_CRYSCRIPTSYSTEM_SCRIPTBINDINGS_SCRIPTBIND_MOVIE_H