add new constructor and ToMessage for VmcExtConfig

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-16 19:32:35 -04:00
parent c1953881a0
commit 291b53bd77

View File

@ -18,6 +18,7 @@
using Godot; using Godot;
using godotOscSharp; using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp namespace godotVmcSharp
{ {
@ -39,5 +40,15 @@ namespace godotVmcSharp
} }
path = (string)m.Data[0].Value; 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<godotOscSharp.OscArgument>{new godotOscSharp.OscArgument(path, 's')});
}
} }
} }