-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from vrchat-community/feature/refactor-to-flue…
…nt-interface Feature/refactor to fluent interface
- Loading branch information
Showing
15 changed files
with
902 additions
and
433 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
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
4 changes: 2 additions & 2 deletions
4
.../OSCQueryExplorer-Unity/Packages/com.vrchat.oscquery/Runtime/Plugins/vrc-oscquery-lib.dll
Git LFS file not shown
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
24 changes: 24 additions & 0 deletions
24
Examples/OSCQueryExplorer-Unity/Packages/com.vrchat.oscquery/Samples/Shared/OSCClientPlus.cs
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Net.Sockets; | ||
using OscCore; | ||
|
||
namespace VRC.OSCQuery.Samples.Shared | ||
{ | ||
public class OscClientPlus : OscClient | ||
{ | ||
/// <summary>Send a message with a string and a bool</summary> | ||
public void Send(string address, string message, bool value) | ||
{ | ||
string boolTag = value ? "T" : "F"; | ||
m_Writer.Reset(); | ||
m_Writer.Write(address); | ||
string typeTags = $",s{boolTag}"; | ||
m_Writer.Write(typeTags); | ||
m_Writer.Write(message); | ||
m_Socket.Send(m_Writer.Buffer, m_Writer.Length, SocketFlags.None); | ||
} | ||
|
||
public OscClientPlus(string ipAddress, int port) : base(ipAddress, port) | ||
{ | ||
} | ||
} | ||
} |
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.