From 5f8fd2d6a740795e9788dedd777477a761c40367 Mon Sep 17 00:00:00 2001 From: Cassandra de la Cruz-Munoz Date: Wed, 16 Aug 2023 19:48:32 -0400 Subject: [PATCH] create new constructor for VmcExtLight --- VmcMessages/VmcExtLight.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/VmcMessages/VmcExtLight.cs b/VmcMessages/VmcExtLight.cs index 8b9c04b..e2e57d3 100644 --- a/VmcMessages/VmcExtLight.cs +++ b/VmcMessages/VmcExtLight.cs @@ -99,5 +99,12 @@ namespace godotVmcSharp transform = new Godot.Transform3D(new Godot.Basis(new Godot.Quaternion((float)m.Data[4].Value, (float)m.Data[5].Value, (float)m.Data[6].Value, (float)m.Data[7].Value)), new Godot.Vector3((float)m.Data[1].Value, (float)m.Data[2].Value, (float)m.Data[3].Value)); color = new Godot.Color((float)m.Data[8].Value, (float)m.Data[9].Value, (float)m.Data[10].Value, (float)m.Data[11].Value); } + + public VmcExtLight(string _name, Godot.Transform3D _transform, Godot.Color _color) : base(new godotOscSharp.Address("/VMC/Ext/Light")) + { + name = _name; + transform = _transform; + color = _color; + } } } \ No newline at end of file