mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Move all scripting header files into new folder.
This commit is contained in:
parent
b43b9c704f
commit
a9d8b78c96
29 changed files with 0 additions and 0 deletions
38
Scripting/Include/ScriptInterfaceGame.h
Normal file
38
Scripting/Include/ScriptInterfaceGame.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#pragma once
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include "room.h"
|
||||
#include "level.h"
|
||||
|
||||
typedef DWORD D3DCOLOR;
|
||||
using VarMapVal = std::variant< short,
|
||||
std::reference_wrapper<MESH_INFO>,
|
||||
std::reference_wrapper<LEVEL_CAMERA_INFO>,
|
||||
std::reference_wrapper<SINK_INFO>,
|
||||
std::reference_wrapper<SOUND_SOURCE_INFO>,
|
||||
std::reference_wrapper<AI_OBJECT>>;
|
||||
|
||||
using CallbackDrawString = std::function<void(std::string const&, D3DCOLOR, int, int, int)>;
|
||||
|
||||
class ScriptInterfaceGame {
|
||||
public:
|
||||
virtual ~ScriptInterfaceGame() = default;
|
||||
virtual void ProcessDisplayStrings(float dt) = 0;
|
||||
|
||||
virtual void InitCallbacks() = 0;
|
||||
|
||||
virtual void OnStart() = 0;
|
||||
virtual void OnLoad() = 0;
|
||||
virtual void OnControlPhase(float dt) = 0;
|
||||
virtual void OnSave() = 0;
|
||||
virtual void OnEnd() = 0;
|
||||
|
||||
virtual void SetCallbackDrawString(CallbackDrawString) = 0;
|
||||
virtual void FreeLevelScripts() = 0;
|
||||
virtual bool AddName(std::string const& key, VarMapVal val) = 0;
|
||||
virtual void ExecuteScriptFile(std::string const& luaFileName) = 0;
|
||||
virtual void ExecuteFunction(std::string const& luaFileName) = 0;
|
||||
|
||||
virtual void AssignItemsAndLara() = 0;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue