From b8186dac8bef3613446e326978c6602f77d54841 Mon Sep 17 00:00:00 2001 From: Cassandra de la Cruz-Munoz Date: Thu, 17 Aug 2023 09:43:12 -0400 Subject: [PATCH] add ToMessage() to VmcExtRemote --- VmcMessages/VmcExtRemote.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/VmcMessages/VmcExtRemote.cs b/VmcMessages/VmcExtRemote.cs index 131a9ad..ee16be8 100644 --- a/VmcMessages/VmcExtRemote.cs +++ b/VmcMessages/VmcExtRemote.cs @@ -18,6 +18,7 @@ using Godot; using godotOscSharp; +using System.Collections.Generic; namespace godotVmcSharp { @@ -52,5 +53,13 @@ namespace godotVmcSharp service = _service; json = _json; } + + public godotOscSharp.OscMessage ToMessage() + { + return new godotOscSharp.OscMessage(addr, new List{ + new godotOscSharp.OscArgument(service, 's'), + new godotOscSharp.OscArgument(json, 's') + }); + } } } \ No newline at end of file