xezno / SharpPresence

Warning: as of April 30 2019, Discord-RPC is deprecated and therefore using this library is not recommended. Please consider using the Discord GameSDK instead, which has a native C# integration and is much easier to use.
https://discordapp.com/developers/docs/game-sdk/sdk-starter-guide
6 stars 1 forks source link

Docs/Examples #4

Open DopeDealers opened 6 years ago

DopeDealers commented 6 years ago

Zero idea on how to use this

no examples whatsoever,

xezno commented 6 years ago

i'll go about cleaning up the code some more later and write some examples, hopefully that will help since i've had complaints before about it being difficult to use

DopeDealers commented 6 years ago

Great thanks! Is there currently any clean way of adding it to a windowsformapp as from lachee's discord-csharp-rpc dll theres no clean way of adding it,

Kind regards, Phil!

xezno commented 6 years ago

i will implement a discordcontroller class that should help to abstractify & simplify a lot of the processes that need doing, as well has handing any unmanaged code.

DopeDealers commented 6 years ago

Sorry for the late reply,

Good luck with these additions Wondering one thing, how long do you think it will take to add them

Kind regards, Phil

xezno commented 6 years ago

not too long. i should have them finished & pushed by tomorrow at the latest. sorry for the delay.

Traderain commented 6 years ago

Can you give a quick example on how to populate EventHandlers while thats happening? I am lost how to make an IntPtr for that.

xezno commented 6 years ago

@Traderain don't worry about trying to populate eventhandlers just yet, the code admittedly wasn't written correctly and should instead use delegates. should be fixed with next commit

bonkmaykrQ commented 5 years ago

@agthrs Can you help with importing this into Unity 5? It says Tasks isn't part of System.Threading, does this have something to do with the .NET specifications I'm using?

I'm using .NET 2.0

xezno commented 5 years ago

I highly recommend not using this code in its current state: none of this is up-to-date with current Discord RPC capabilities; the code is, quite frankly, a mess; and, the entire "library" is difficult to use. I may revisit this repository at a later date, but there are no guarantees.

cxnky commented 5 years ago

archive it then, so we know not to use this code if it's not up to date.

bonkmaykrQ commented 5 years ago

archive it then, so we know not to use this code if it's not up to date.

Yeah, do that please @xezno

xezno commented 5 years ago

Will archive the repo, but it may return at some point when I'm not busy.