Commit 9f61f1ed by Michael Belousov Committed by Michael Belousov

Mono: fix bad long casts and wrong underlying enum types in GodotTools

parent 60fcefba
namespace GodotTools.Build namespace GodotTools.Build
{ {
public enum BuildTool public enum BuildTool : long
{ {
MsBuildMono, MsBuildMono,
MsBuildVs, MsBuildVs,
......
namespace GodotTools namespace GodotTools
{ {
public enum ExternalEditorId public enum ExternalEditorId : long
{ {
None, None,
VisualStudio, // TODO (Windows-only) VisualStudio, // TODO (Windows-only)
......
...@@ -13,9 +13,9 @@ namespace GodotTools.Internals ...@@ -13,9 +13,9 @@ namespace GodotTools.Internals
public string Name { get; } public string Name { get; }
public string Namespace { get; } public string Namespace { get; }
public bool Nested { get; } public bool Nested { get; }
public int BaseCount { get; } public long BaseCount { get; }
public ClassDecl(string name, string @namespace, bool nested, int baseCount) public ClassDecl(string name, string @namespace, bool nested, long baseCount)
{ {
Name = name; Name = name;
Namespace = @namespace; Namespace = @namespace;
...@@ -45,7 +45,7 @@ namespace GodotTools.Internals ...@@ -45,7 +45,7 @@ namespace GodotTools.Internals
(string)classDeclDict["name"], (string)classDeclDict["name"],
(string)classDeclDict["namespace"], (string)classDeclDict["namespace"],
(bool)classDeclDict["nested"], (bool)classDeclDict["nested"],
(int)classDeclDict["base_count"] (long)classDeclDict["base_count"]
)); ));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment