add new constructor and ToMessage for VmcExtConfig
This commit is contained in:
parent
c1953881a0
commit
291b53bd77
|
@ -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<godotOscSharp.OscArgument>{new godotOscSharp.OscArgument(path, 's')});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user