Skip to content

Conversation

Lachee
Copy link
Owner

@Lachee Lachee commented Mar 18, 2018

Reimplemented the library using .NET 3.5. Added more support for things such as the Join / Spectate feature, proper threading and connection handling, proper events and generally finished the library. Working on examples now in the unity-5.5 branch instead.

Lachee added 18 commits January 24, 2018 13:24
There are lots of errors.
WOOOO! You can now set presences
This allows writes and reads at the same time.
Can now connect and send messages properly. Will update current RPC with responses from Discord.
Abstracting away the RpcConnection to a main manager. Added a bunch of comments to document the flow better and renamed some functions to better describe how they work. Gave the queue an actual Queue object and added ClearPresence and Close.
This was cleared up by Mason in the API server.
Reworked the RPC Connection and so now its continous and always
connected, queing up messages when not available and processing them
once connected again.
I suck at maths and cannot really see where I am going wrong. So instead
I just wrapped it in basically a clamp.
Cause secrets are fun. Probably will switch to a ASCII encoder instead
of a UTF8 tho, just so we get some nicer characters...... might even
make it a lookup instead.
Finished implementing the join / spectate feature. Finished the queue
and fixed the long running bug of broken pipes. Refactored and moved
some things around too.
This is a super useful feature for debugging.
Added actual events you can add listeners too. Just use the Invoke()
method to call all the events that were queued up. Logging has been
changed from directly Console.WriteLine to a new expandable type. This
type will allow people to replace the default logger with their own. By
default there are 2 loggers, NullLogger (which ignores all logs) and
ConsoleLogger (which reimplements the Console.WriteLine). These logs are
not thread safe.
@Lachee Lachee merged commit a828ac2 into master Mar 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant