add ToMessage() to VmcExtSettingColor

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-17 10:18:47 -04:00
parent 0ca919ad5e
commit 164132cbb1

View File

@ -18,6 +18,7 @@
using Godot;
using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp
{
@ -59,5 +60,15 @@ namespace godotVmcSharp
{
color = _color;
}
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
new godotOscSharp.OscArgument(color.R, 'f'),
new godotOscSharp.OscArgument(color.G, 'f'),
new godotOscSharp.OscArgument(color.B, 'f'),
new godotOscSharp.OscArgument(color.A, 'f')
});
}
}
}