Shkyera Engine
Easy to use, game engine for Python
StaticAnalysis.hpp
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace shkyera::Python {
10 
14 enum PYTHON_TYPE : int {
15  INT = 0,
16  FLOAT = 1,
17  STRING = 2,
18 
19  TOTAL_TYPES = 3
20 };
21 
28 std::vector<std::pair<std::string, PYTHON_TYPE>> getPublicVariables(std::string scriptName);
29 
30 } // namespace shkyera::Python
Definition: Events.cpp:7
PYTHON_TYPE
Enum representing different types that can be used in Python.
Definition: StaticAnalysis.hpp:14
@ STRING
String type.
Definition: StaticAnalysis.hpp:17
@ FLOAT
Float type.
Definition: StaticAnalysis.hpp:16
@ INT
Integer type.
Definition: StaticAnalysis.hpp:15
@ TOTAL_TYPES
The total number of supported types.
Definition: StaticAnalysis.hpp:19
std::vector< std::pair< std::string, PYTHON_TYPE > > getPublicVariables(std::string scriptName)
Function to get a list of public variables and their types from a Python script.
Definition: StaticAnalysis.cpp:16