1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Makes dictionary instead of string for visual shader version

Update doc/classes/VisualShader.xml

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Yuri Roubinsky
2021-08-01 18:13:51 +03:00
parent 737d3d31a6
commit 94c6817b51
4 changed files with 44 additions and 20 deletions

View File

@@ -44,7 +44,7 @@ class VisualShader : public Shader {
friend class VisualShaderNodeVersionChecker;
String version = "";
Dictionary engine_version;
public:
enum Type {
@@ -137,10 +137,12 @@ public: // internal methods
Type get_shader_type() const;
public:
void set_version(const String &p_version);
String get_version() const;
void set_engine_version(const Dictionary &p_version);
Dictionary get_engine_version() const;
void update_version(const String &p_new_version);
#ifndef DISABLE_DEPRECATED
void update_engine_version(const Dictionary &p_new_version);
#endif /* DISABLE_DEPRECATED */
enum {
NODE_ID_INVALID = -1,