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
47
TR5Main/Scripting/GameScriptAIObject.h
Normal file
47
TR5Main/Scripting/GameScriptAIObject.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
#pragma once
|
||||
|
||||
#include "GameScriptNamedBase.h"
|
||||
#include "level.h"
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
}
|
||||
class GameScriptPosition;
|
||||
|
||||
class GameScriptAIObject : public GameScriptNamedBase<GameScriptAIObject, AI_OBJECT&>
|
||||
{
|
||||
public:
|
||||
GameScriptAIObject(AI_OBJECT& ref, bool temp);
|
||||
~GameScriptAIObject();
|
||||
|
||||
static void Register(sol::state *);
|
||||
|
||||
GameScriptPosition GetPos() const;
|
||||
void SetPos(GameScriptPosition const& pos);
|
||||
|
||||
short GetRoom() const;
|
||||
void SetRoom(short Room);
|
||||
|
||||
std::string GetName() const;
|
||||
void SetName(std::string const &);
|
||||
|
||||
GAME_OBJECT_ID GetObjID() const;
|
||||
void SetObjID(GAME_OBJECT_ID);
|
||||
|
||||
short GetTriggerFlags() const;
|
||||
void SetTriggerFlags(short);
|
||||
|
||||
short GetFlags() const;
|
||||
void SetFlags(short);
|
||||
|
||||
short GetYRot() const;
|
||||
void SetYRot(short);
|
||||
|
||||
short GetBoxNumber() const;
|
||||
void SetBoxNumber(short);
|
||||
|
||||
private:
|
||||
AI_OBJECT & m_aiObject;
|
||||
bool m_temporary;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue