diff options
| author | Michael <[email protected]> | 2017-05-02 17:11:31 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-02 17:11:31 -0400 |
| commit | 99eede4118bc247a9ca2e6f7329bf1b9fea5b52d (patch) | |
| tree | a77b5d295119eaaf3fb12c7e09aa0e8b1f6db4ee /ShiftOS_TheReturn/UniteTestCommands.cs | |
| parent | 0c2f2329119d8bfe2218912890d55def22965b87 (diff) | |
| download | shiftos_thereturn-99eede4118bc247a9ca2e6f7329bf1b9fea5b52d.tar.gz shiftos_thereturn-99eede4118bc247a9ca2e6f7329bf1b9fea5b52d.tar.bz2 shiftos_thereturn-99eede4118bc247a9ca2e6f7329bf1b9fea5b52d.zip | |
pong highscores are semi-fixed
Diffstat (limited to 'ShiftOS_TheReturn/UniteTestCommands.cs')
| -rw-r--r-- | ShiftOS_TheReturn/UniteTestCommands.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/UniteTestCommands.cs b/ShiftOS_TheReturn/UniteTestCommands.cs index 37ab1ee..7a83e44 100644 --- a/ShiftOS_TheReturn/UniteTestCommands.cs +++ b/ShiftOS_TheReturn/UniteTestCommands.cs @@ -10,6 +10,16 @@ namespace ShiftOS.Engine [Namespace("unite")] public static class UniteTestCommands { + [Command("setdisplayname")] + [RequiresArgument("name")] + public static bool SetDisplayName(Dictionary<string, object> args) + { + string dname = args["name"].ToString(); + var unite = new ShiftOS.Unite.UniteClient("http://getshiftos.ml", SaveSystem.CurrentSave.UniteAuthToken); + unite.SetDisplayName(dname); + return true; + } + [Command("login")] [RequiresArgument("username")] [RequiresArgument("password")] |
