Delete copy operations for GameScriptAIObject, GameScriptCameraInfo, GameScriptSinkInfo and GameScriptSoundSourceInfo - this can be changed later, but for now is a safety measure since we hold a reference, which means copying these would take some extra thought.

This commit is contained in:
hispidence 2021-07-26 18:25:50 +01:00
parent e33e821cb8
commit dba2f8ac91
4 changed files with 14 additions and 0 deletions

View file

@ -13,6 +13,10 @@ class GameScriptCameraInfo : public GameScriptNamedBase<GameScriptCameraInfo, LE
public:
GameScriptCameraInfo(LEVEL_CAMERA_INFO& ref, bool temp);
~GameScriptCameraInfo();
GameScriptCameraInfo& operator=(GameScriptCameraInfo const& other) = delete;
GameScriptCameraInfo(GameScriptCameraInfo const& other) = delete;
static void Register(sol::state *);
GameScriptPosition GetPos() const;
void SetPos(GameScriptPosition const& pos);