From 291b53bd776b658e47934fae882ca89c5a210429 Mon Sep 17 00:00:00 2001 From: Cassandra de la Cruz-Munoz Date: Wed, 16 Aug 2023 19:32:35 -0400 Subject: [PATCH] add new constructor and ToMessage for VmcExtConfig --- VmcMessages/VmcExtConfig.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/VmcMessages/VmcExtConfig.cs b/VmcMessages/VmcExtConfig.cs index 2cd81a8..e9abc3d 100644 --- a/VmcMessages/VmcExtConfig.cs +++ b/VmcMessages/VmcExtConfig.cs @@ -18,6 +18,7 @@ using Godot; using godotOscSharp; +using System.Collections.Generic; namespace godotVmcSharp { @@ -39,5 +40,15 @@ namespace godotVmcSharp } path = (string)m.Data[0].Value; } + + public VmcExtConfig(string _path) : base(new godotOscSharp.Address("/VMC/Ext/Config")) + { + path = _path; + } + + public godotOscSharp.OscMessage ToMessage() + { + return new godotOscSharp.OscMessage(addr, new List{new godotOscSharp.OscArgument(path, 's')}); + } } } \ No newline at end of file