Skip to content

Commit 39f8f66

Browse files
authored
Merge pull request #49 from binury/fix/codegen-int-variants
2 parents a059c34 + a9f7d58 commit 39f8f66

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

GDWeave/Godot/VariantParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class VariantParser {
1111
public static Dictionary<VariantType, Func<ParserReaderContext, Variant>> Parsers = new() {
1212
{VariantType.Nil, ctx => new NilVariant(ctx)},
1313
{VariantType.Bool, ctx => new BoolVariant(ctx)},
14-
{VariantType.Int, ctx => new IntVariant(ctx)},
14+
{VariantType.@int, ctx => new IntVariant(ctx)},
1515
{VariantType.Real, ctx => new RealVariant(ctx)},
1616
{VariantType.String, ctx => new StringVariant(ctx)},
1717
};

GDWeave/Godot/VariantType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public enum VariantType : uint {
55

66
// atomic types
77
Bool,
8-
Int,
8+
@int,
99
Real,
1010
String,
1111

GDWeave/Godot/Variants/IntVariant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public IntVariant(long value, bool is64 = false) {
1515
}
1616

1717
public override void Write(VariantParser.ParserWriterContext ctx) {
18-
ctx.WriteType(VariantType.Int, is64: this.Is64);
18+
ctx.WriteType(VariantType.@int, is64: this.Is64);
1919
if (this.Is64) {
2020
ctx.Writer.Write(this.Value);
2121
} else {

0 commit comments

Comments
 (0)