More slash command stuff
This commit is contained in:
@@ -78,7 +78,7 @@ public:
|
|||||||
// is consumed either way. Returns Success if it matched, Error
|
// is consumed either way. Returns Success if it matched, Error
|
||||||
// otherwise.
|
// otherwise.
|
||||||
//
|
//
|
||||||
UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "ReturnValue"))
|
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", ExpandEnumAsExecs = "ReturnValue"))
|
||||||
ElxSuccessOrError CheckCommand(const FString& Literal, const FString& Prototype);
|
ElxSuccessOrError CheckCommand(const FString& Literal, const FString& Prototype);
|
||||||
|
|
||||||
// Read the next whitespace-delimited word from the command line.
|
// Read the next whitespace-delimited word from the command line.
|
||||||
@@ -87,7 +87,7 @@ public:
|
|||||||
// the token as an FString. Returns Error (with an empty Result)
|
// the token as an FString. Returns Error (with an empty Result)
|
||||||
// if there is no nonwhitespace input left, Success otherwise.
|
// if there is no nonwhitespace input left, Success otherwise.
|
||||||
//
|
//
|
||||||
UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "ReturnValue"))
|
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", ExpandEnumAsExecs = "ReturnValue"))
|
||||||
ElxSuccessOrError ReadToken(FString& Result);
|
ElxSuccessOrError ReadToken(FString& Result);
|
||||||
|
|
||||||
// Read the next token and interpret it as an integer, using C++
|
// Read the next token and interpret it as an integer, using C++
|
||||||
@@ -95,7 +95,7 @@ public:
|
|||||||
// octal). The whole token must be valid; "12abc" is rejected.
|
// octal). The whole token must be valid; "12abc" is rejected.
|
||||||
// Returns Error (with Result 0) on failure, Success otherwise.
|
// Returns Error (with Result 0) on failure, Success otherwise.
|
||||||
//
|
//
|
||||||
UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "ReturnValue"))
|
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", ExpandEnumAsExecs = "ReturnValue"))
|
||||||
ElxSuccessOrError ReadInteger(int32& Result);
|
ElxSuccessOrError ReadInteger(int32& Result);
|
||||||
|
|
||||||
// Read the next token and interpret it as a floating-point number,
|
// Read the next token and interpret it as a floating-point number,
|
||||||
@@ -104,14 +104,14 @@ public:
|
|||||||
// is rejected. Returns Error (with Result 0) on failure, Success
|
// is rejected. Returns Error (with Result 0) on failure, Success
|
||||||
// otherwise.
|
// otherwise.
|
||||||
//
|
//
|
||||||
UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "ReturnValue"))
|
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", ExpandEnumAsExecs = "ReturnValue"))
|
||||||
ElxSuccessOrError ReadFloat(double& Result);
|
ElxSuccessOrError ReadFloat(double& Result);
|
||||||
|
|
||||||
// Read the rest of the command line, from the cursor to the end,
|
// Read the rest of the command line, from the cursor to the end,
|
||||||
// trimmed of leading and trailing whitespace. The cursor is
|
// trimmed of leading and trailing whitespace. The cursor is
|
||||||
// advanced to the end. Always returns Success.
|
// advanced to the end. Always returns Success.
|
||||||
//
|
//
|
||||||
UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "ReturnValue"))
|
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", ExpandEnumAsExecs = "ReturnValue"))
|
||||||
ElxSuccessOrError ReadRest(FString& Result);
|
ElxSuccessOrError ReadRest(FString& Result);
|
||||||
|
|
||||||
// Return a user-facing error message describing why parsing failed.
|
// Return a user-facing error message describing why parsing failed.
|
||||||
|
|||||||
Reference in New Issue
Block a user