-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mainly, this involved specifying fields as private and/or readonly. I also moved screens and elements to their own namespaces.
- Loading branch information
1 parent
2d393b6
commit c0611c0
Showing
31 changed files
with
508 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,35 @@ | ||
using DiscordRPC; | ||
|
||
namespace CrankItUp.Desktop{ | ||
|
||
public class Discord{ | ||
public DiscordRpcClient client; | ||
|
||
//Called when your application first starts. | ||
//For example, just before your main loop, on OnEnable for unity. | ||
public void Initialize() | ||
|
||
{ | ||
|
||
client = new DiscordRpcClient("1039782791602241567"); | ||
|
||
|
||
//Subscribe to events | ||
client.OnReady += (sender, e) => | ||
{ | ||
System.Console.WriteLine("Received Ready from user {0}", e.User.Username); | ||
}; | ||
|
||
client.OnPresenceUpdate += (sender, e) => | ||
{ | ||
System.Console.WriteLine("Received Update! {0}", e.Presence); | ||
}; | ||
|
||
//Connect to the RPC | ||
client.Initialize(); | ||
|
||
//Set the rich presence | ||
client.SetPresence(new RichPresence() | ||
{ | ||
Details = "", | ||
Assets = new Assets() { | ||
LargeImageKey = "logo", | ||
} | ||
|
||
}); | ||
} | ||
} | ||
} | ||
namespace CrankItUp.Desktop | ||
{ | ||
public class Discord | ||
{ | ||
public DiscordRpcClient Client; | ||
|
||
//Called when your application first starts. | ||
//For example, just before your main loop, on OnEnable for unity. | ||
public void Initialize() | ||
|
||
{ | ||
Client = new DiscordRpcClient("1039782791602241567"); | ||
|
||
//Subscribe to events | ||
Client.OnReady += (sender, e) => { System.Console.WriteLine("Received Ready from user {0}", e.User.Username); }; | ||
|
||
Client.OnPresenceUpdate += (sender, e) => { System.Console.WriteLine("Received Update! {0}", e.Presence); }; | ||
|
||
//Connect to the RPC | ||
Client.Initialize(); | ||
|
||
//Set the rich presence | ||
Client.SetPresence(new RichPresence | ||
{ | ||
Details = "", | ||
Assets = new Assets | ||
{ | ||
LargeImageKey = "logo", | ||
} | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using osu.Framework.Testing; | ||
using osu.Framework.Graphics; | ||
|
||
namespace CrankItUp.Game.Tests.Visual | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using CrankItUp.Game.Screens; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Screens; | ||
using NUnit.Framework; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using CrankItUp.Game.Screens; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Screens; | ||
using NUnit.Framework; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using CrankItUp.Game.Screens; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Screens; | ||
using NUnit.Framework; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using CrankItUp.Game.Screens; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Screens; | ||
using NUnit.Framework; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using CrankItUp.Game.Screens; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Screens; | ||
using NUnit.Framework; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.