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

This commit is contained in:
Michael Belousov 2020-06-21 19:31:48 -04:00 committed by Michael Belousov
parent 60fcefba69
commit 9f61f1ed54
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
namespace GodotTools.Build
{
public enum BuildTool
public enum BuildTool : long
{
MsBuildMono,
MsBuildVs,

View file

@ -1,6 +1,6 @@
namespace GodotTools
{
public enum ExternalEditorId
public enum ExternalEditorId : long
{
None,
VisualStudio, // TODO (Windows-only)

View file

@ -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"]
));
}