mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 12:36:45 +03:00
Add GameScriptSoundSourceInfo and GameScriptAIObject, and associated functions.
This commit is contained in:
parent
6720fb2318
commit
cf8723c448
7 changed files with 386 additions and 9 deletions
33
TR5Main/Scripting/GameScriptSoundSourceInfo.h
Normal file
33
TR5Main/Scripting/GameScriptSoundSourceInfo.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include "GameScriptNamedBase.h"
|
||||
#include "phd_global.h"
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
}
|
||||
class GameScriptPosition;
|
||||
|
||||
class GameScriptSoundSourceInfo : public GameScriptNamedBase<GameScriptSoundSourceInfo, SOUND_SOURCE_INFO &>
|
||||
{
|
||||
public:
|
||||
GameScriptSoundSourceInfo(SOUND_SOURCE_INFO& ref, bool temp);
|
||||
~GameScriptSoundSourceInfo();
|
||||
static void Register(sol::state *);
|
||||
GameScriptPosition GetPos() const;
|
||||
void SetPos(GameScriptPosition const& pos);
|
||||
|
||||
int GetSoundID() const;
|
||||
void SetSoundID(int soundID);
|
||||
|
||||
int GetFlags() const;
|
||||
void SetFlags(int flags);
|
||||
|
||||
std::string GetName() const;
|
||||
void SetName(std::string const &);
|
||||
|
||||
private:
|
||||
SOUND_SOURCE_INFO & m_soundSource;
|
||||
bool m_temporary;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue