add ToMessage() function for VmcExtBlendVal

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-16 19:09:41 -04:00
parent c72cb2d6ec
commit e405477b79

View File

@ -18,6 +18,7 @@
using Godot; using Godot;
using godotOscSharp; using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp namespace godotVmcSharp
{ {
@ -131,5 +132,9 @@ namespace godotVmcSharp
name == "mouthStretchLeft" || name == "mouthStretchRight" || name == "mouthStretchLeft" || name == "mouthStretchRight" ||
name == "tongueOut"; name == "tongueOut";
} }
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{new godotOscSharp.OscArgument(name, 's'), new godotOscSharp.OscArgument(value, 'f')});
}
} }
} }