Skip to content

Commit c6de6e9

Browse files
committed
ExpectedArguments fix, DurationValue erroring if no duration fix, 2 new Intercom methods
1 parent 8624b02 commit c6de6e9

35 files changed

+95
-32
lines changed

MethodSystem/Methods/AudioMethods/IsAudioLoadedMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class IsAudioLoadedMethod : ReturningMethod<BoolValue>
99
{
1010
public override string Description => "Returns true if a given audio clip has been loaded";
1111

12-
public override Argument[] ExpectedArguments =>
12+
public override Argument[] ExpectedArguments { get; } =
1313
[
1414
new TextArgument("clip name")
1515
{

MethodSystem/Methods/CollectionVariableMethods/CollectionFetchMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class CollectionFetchMethod : ReturningMethod
1111
public override string Description => "Returns a value from a collection variable at a given position.";
1212
public override Type[]? ReturnTypes => null;
1313

14-
public override Argument[] ExpectedArguments =>
14+
public override Argument[] ExpectedArguments { get; } =
1515
[
1616
new CollectionArgument("collection"),
1717
new IntArgument("index", 1)

MethodSystem/Methods/CollectionVariableMethods/CollectionLengthMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class CollectionLengthMethod : ReturningMethod<NumberValue>
99
{
1010
public override string? Description => "Returns the amount of items in a collection.";
1111

12-
public override Argument[] ExpectedArguments =>
12+
public override Argument[] ExpectedArguments { get; } =
1313
[
1414
new CollectionArgument("collection")
1515
];

MethodSystem/Methods/DatabaseMethods/AppendDBMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class AppendDBMethod : SynchronousMethod, ICanError
1515
"Provided value cannot be stored in databases"
1616
];
1717

18-
public override Argument[] ExpectedArguments =>
18+
public override Argument[] ExpectedArguments { get; } =
1919
[
2020
new DatabaseArgument("database"),
2121
new TextArgument("key"),

MethodSystem/Methods/DatabaseMethods/CreateDBMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class CreateDBMethod : SynchronousMethod
99
{
1010
public override string Description => "Creates a new JSON file in the database folder.";
1111

12-
public override Argument[] ExpectedArguments =>
12+
public override Argument[] ExpectedArguments { get; } =
1313
[
1414
new TextArgument("name"),
1515
];

MethodSystem/Methods/DatabaseMethods/DBExistsMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class DBExistsMethod : ReturningMethod<BoolValue>
1010
{
1111
public override string Description => "Returns true if the provided database exists.";
1212

13-
public override Argument[] ExpectedArguments =>
13+
public override Argument[] ExpectedArguments { get; } =
1414
[
1515
new TextArgument("database name")
1616
];

MethodSystem/Methods/DatabaseMethods/DBHasKeyMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class DBHasKeyMethod : ReturningMethod<BoolValue>
99
{
1010
public override string Description => "Returns true if the provided key exists in the database.";
1111

12-
public override Argument[] ExpectedArguments =>
12+
public override Argument[] ExpectedArguments { get; } =
1313
[
1414
new DatabaseArgument("database"),
1515
new TextArgument("key")

MethodSystem/Methods/DatabaseMethods/GetFromDBMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class GetFromDBMethod : ReturningMethod, ICanError
1717
"Provided key does not exist in the database."
1818
];
1919

20-
public override Argument[] ExpectedArguments =>
20+
public override Argument[] ExpectedArguments { get; } =
2121
[
2222
new DatabaseArgument("database"),
2323
new TextArgument("key")

MethodSystem/Methods/DoorMethods/BreakDoorMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal class BreakDoorMethod : SynchronousMethod
1010
{
1111
public override string Description => "Breaks specified doors if possible (for example, you can't destroy Gate B, but you can destroy normal HCZ doors)";
1212

13-
public override Argument[] ExpectedArguments =>
13+
public override Argument[] ExpectedArguments { get; } =
1414
[
1515
new DoorsArgument("doors")
1616
{

MethodSystem/Methods/DoorMethods/RepairDoorMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class RepairDoorMethod : SynchronousMethod, IAdditionalDescription
1313
public string AdditionalDescription =>
1414
"Remember, you can't repair things like gates, but you can repair normal doors like HCZ doors";
1515

16-
public override Argument[] ExpectedArguments =>
16+
public override Argument[] ExpectedArguments { get; } =
1717
[
1818
new DoorsArgument("doors to repair")
1919
];

0 commit comments

Comments
 (0)