add ToMessage() to VmcExtRemote

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-17 09:43:12 -04:00
parent 22e076dce6
commit b8186dac8b

View File

@ -18,6 +18,7 @@
using Godot; using Godot;
using godotOscSharp; using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp namespace godotVmcSharp
{ {
@ -52,5 +53,13 @@ namespace godotVmcSharp
service = _service; service = _service;
json = _json; json = _json;
} }
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
new godotOscSharp.OscArgument(service, 's'),
new godotOscSharp.OscArgument(json, 's')
});
}
} }
} }