mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-12-23 04:35:36 +00:00
Update Unity example (also, remove dll, need to do that a better way)
This commit is contained in:
parent
1a278528a2
commit
c053b72f58
|
@ -71,7 +71,7 @@ public class DiscordController : MonoBehaviour
|
||||||
public void RequestCallback(DiscordRpc.JoinRequest request)
|
public void RequestCallback(DiscordRpc.JoinRequest request)
|
||||||
{
|
{
|
||||||
++callbackCalls;
|
++callbackCalls;
|
||||||
Debug.Log(string.Format("Discord: join request {0}: {1}", request.username, request.userId));
|
Debug.Log(string.Format("Discord: join request {0}#{1}: {2}", request.username, request.discriminator, request.userId));
|
||||||
onJoinRequest.Invoke(request);
|
onJoinRequest.Invoke(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class DiscordRpc
|
||||||
{
|
{
|
||||||
public string userId;
|
public string userId;
|
||||||
public string username;
|
public string username;
|
||||||
|
public string discriminator;
|
||||||
public string avatar;
|
public string avatar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -653,7 +653,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
presence:
|
presence:
|
||||||
state: Button clicking
|
state: Button clicking
|
||||||
details:
|
details: Best game ever
|
||||||
startTimestamp: 0
|
startTimestamp: 0
|
||||||
endTimestamp: 0
|
endTimestamp: 0
|
||||||
largeImageKey: stable-large
|
largeImageKey: stable-large
|
||||||
|
@ -663,10 +663,10 @@ MonoBehaviour:
|
||||||
partyId: abcdefg
|
partyId: abcdefg
|
||||||
partySize: 1
|
partySize: 1
|
||||||
partyMax: 10
|
partyMax: 10
|
||||||
matchSecret:
|
matchSecret: match_secret
|
||||||
joinSecret:
|
joinSecret: join_secret
|
||||||
spectateSecret:
|
spectateSecret: spectate_secret
|
||||||
instance: 0
|
instance: 1
|
||||||
applicationId: 345229890980937739
|
applicationId: 345229890980937739
|
||||||
optionalSteamId:
|
optionalSteamId:
|
||||||
callbackCalls: 0
|
callbackCalls: 0
|
||||||
|
|
Loading…
Reference in a new issue