Skip to content

Commit

Permalink
Removed ConsoleArgumentType. Changed method param to built in type
Browse files Browse the repository at this point in the history
  • Loading branch information
RcubDev committed Oct 26, 2021
1 parent 32f2188 commit 850e6f2
Showing 1 changed file with 1 addition and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public CSharpCommand SetDescription(string description) {
return this;
}

public CSharpCommand AddArgument(string argumentName, ConsoleArgumentType argumentType) {
public CSharpCommand AddArgument(string argumentName, Variant.Type argumentType) {
_commandObject.Call("add_argument", argumentName, argumentType);
return this;
}
Expand All @@ -34,34 +34,3 @@ public CSharpCommand Register() {
return this;
}
}

public enum ConsoleArgumentType {
TYPE_NIL = 0,
TYPE_BOOL = 1,
TYPE_INT = 2,
TYPE_REAL = 3,
TYPE_STRING = 4,
TYPE_VECTOR2 = 5,
TYPE_RECT2 = 6,
TYPE_VECTOR3 = 7,
TYPE_TRANFORM2D = 8,
TYPE_PLANE = 9,
TYPE_QUAT = 10,
TYPE_AABB = 11,
TYPE_BASIS = 12,
TYPE_TRANSFORM = 13,
TYPE_COLOR = 14,
TYPE_NODE_PATH = 15,
TYPE_RID = 16,
TYPE_OBJECT = 17,
TYPE_DICTIONARY = 18,
TYPE_ARRAY = 19,
TYPE_RAW_ARRAY = 20,
TYPE_INT_ARRAY = 21,
TYPE_REAL_ARRAY = 22,
TYPE_STRING_ARRAY = 23,
TYPE_VECTOR2_ARRAY = 24,
TYPE_VECTOR3_ARRAY = 25,
TYPE_COLOR_ARRAY = 26,
TYPE_MAX = 27
}

0 comments on commit 850e6f2

Please sign in to comment.