add ToMessage() to VmcExtSetPeriod

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-17 10:09:53 -04:00
parent 15e61426ec
commit 319a201ee0

View File

@ -18,6 +18,7 @@
using Godot; using Godot;
using godotOscSharp; using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp namespace godotVmcSharp
{ {
@ -84,5 +85,17 @@ namespace godotVmcSharp
camera = _camera; camera = _camera;
devices = _devices; devices = _devices;
} }
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
new godotOscSharp.OscArgument(status, 'i'),
new godotOscSharp.OscArgument(root, 'i'),
new godotOscSharp.OscArgument(bone, 'i'),
new godotOscSharp.OscArgument(blendShape, 'i'),
new godotOscSharp.OscArgument(camera, 'i'),
new godotOscSharp.OscArgument(devices, 'i'),
});
}
} }
} }