Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GDWeave/Godot/VariantParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class VariantParser {
public static Dictionary<VariantType, Func<ParserReaderContext, Variant>> Parsers = new() {
{VariantType.Nil, ctx => new NilVariant(ctx)},
{VariantType.Bool, ctx => new BoolVariant(ctx)},
{VariantType.Int, ctx => new IntVariant(ctx)},
{VariantType.@int, ctx => new IntVariant(ctx)},
{VariantType.Real, ctx => new RealVariant(ctx)},
{VariantType.String, ctx => new StringVariant(ctx)},
};
Expand Down
2 changes: 1 addition & 1 deletion GDWeave/Godot/VariantType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public enum VariantType : uint {

// atomic types
Bool,
Int,
@int,
Real,
String,

Expand Down
2 changes: 1 addition & 1 deletion GDWeave/Godot/Variants/IntVariant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public IntVariant(long value, bool is64 = false) {
}

public override void Write(VariantParser.ParserWriterContext ctx) {
ctx.WriteType(VariantType.Int, is64: this.Is64);
ctx.WriteType(VariantType.@int, is64: this.Is64);
if (this.Is64) {
ctx.Writer.Write(this.Value);
} else {
Expand Down
Loading