CSEngine
Loading...
Searching...
No Matches
SScriptObject.h
1//
2// Created by ounols on 19. 10. 27.
3//
4
5#pragma once
6
7#include "SResource.h"
8#include <vector>
9
10namespace CSE {
11
12 class SScriptObject : public SResource {
13 public:
15
16 ~SScriptObject() override;
17
18 void Exterminate() override;
19
20 std::vector<std::string> GetVariables() const;
21
22 std::string GetScriptClassName() const {
23 return m_className;
24 }
25
26 protected:
27 void Init(const AssetMgr::AssetReference* asset) override;
28
29 private:
30 void RegisterScript(const std::string& script);
31 void RemakeScript(const std::string& path);
32 void GetVariables(const std::string& str);
33
34 private:
35 std::vector<std::string> m_variables;
36 std::string m_className;
37 };
38
39}