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
{
public enum BuildTool
public enum BuildTool : long
{
MsBuildMono,
MsBuildVs,
......
namespace GodotTools
{
public enum ExternalEditorId
public enum ExternalEditorId : long
{
None,
VisualStudio, // TODO (Windows-only)
......
......@@ -13,9 +13,9 @@ namespace GodotTools.Internals
public string Name { get; }
public string Namespace { 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;
Namespace = @namespace;
......@@ -45,7 +45,7 @@ namespace GodotTools.Internals
(string)classDeclDict["name"],
(string)classDeclDict["namespace"],
(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