style update that is more clear
This commit is contained in:
parent
97d0396506
commit
5ac995474c
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtBlendVal : VmcMessage
|
public class VmcExtBlendVal : VmcMessage
|
||||||
{
|
{
|
||||||
public string Name { get; }
|
public readonly string Name;
|
||||||
public float Value { get; }
|
public readonly float Value;
|
||||||
public VmcExtBlendVal(OscMessage m) : base(m.Address)
|
public VmcExtBlendVal(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
if (m.Data.Count != 2)
|
if (m.Data.Count != 2)
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtBonePos : VmcMessage
|
public class VmcExtBonePos : VmcMessage
|
||||||
{
|
{
|
||||||
public string Name { get; }
|
public readonly string Name;
|
||||||
public Transform3D Transform { get; }
|
public readonly Transform3D Transform;
|
||||||
|
|
||||||
public VmcExtBonePos(OscMessage m) : base(m.Address)
|
public VmcExtBonePos(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,9 +24,9 @@ namespace godotVmcSharp
|
||||||
class VmcExtCam : VmcMessage
|
class VmcExtCam : VmcMessage
|
||||||
{
|
{
|
||||||
|
|
||||||
public string Name { get; }
|
public readonly string Name;
|
||||||
public Transform3D Transform { get; }
|
public readonly Transform3D Transform;
|
||||||
public float Fov { get; }
|
public readonly float Fov;
|
||||||
|
|
||||||
public VmcExtCam(OscMessage m) : base(m.Address)
|
public VmcExtCam(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,12 +23,12 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtCon : VmcMessage
|
public class VmcExtCon : VmcMessage
|
||||||
{
|
{
|
||||||
public int Active { get; }
|
public readonly int Active;
|
||||||
public string Name { get; }
|
public readonly string Name;
|
||||||
public int IsLeft { get; }
|
public readonly int IsLeft;
|
||||||
public int IsTouch { get; }
|
public readonly int IsTouch;
|
||||||
public int IsAxis { get; }
|
public readonly int IsAxis;
|
||||||
public Vector3 Axis { get; }
|
public readonly Vector3 Axis;
|
||||||
|
|
||||||
public VmcExtCon(OscMessage m) : base(m.Address)
|
public VmcExtCon(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtConfig : VmcMessage
|
public class VmcExtConfig : VmcMessage
|
||||||
{
|
{
|
||||||
public string Path { get; }
|
public readonly string Path;
|
||||||
|
|
||||||
public VmcExtConfig(OscMessage m) : base(m.Address)
|
public VmcExtConfig(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtDevicePos : VmcMessage
|
public class VmcExtDevicePos : VmcMessage
|
||||||
{
|
{
|
||||||
public string Serial { get; }
|
public readonly string Serial;
|
||||||
public Transform3D Transform { get; }
|
public readonly Transform3D Transform;
|
||||||
|
|
||||||
public VmcExtDevicePos(OscMessage m) : base(m.Address)
|
public VmcExtDevicePos(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,9 +23,9 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtKey : VmcMessage
|
public class VmcExtKey : VmcMessage
|
||||||
{
|
{
|
||||||
public int Active { get; }
|
public readonly int Active;
|
||||||
public string Name { get; }
|
public readonly string Name;
|
||||||
public int Keycode { get; }
|
public readonly int Keycode;
|
||||||
public VmcExtKey(OscMessage m) : base(m.Address)
|
public VmcExtKey(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
if (m.Data[0].Type != 'i')
|
if (m.Data[0].Type != 'i')
|
||||||
|
|
|
@ -24,9 +24,9 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtLight : VmcMessage
|
public class VmcExtLight : VmcMessage
|
||||||
{
|
{
|
||||||
public string Name { get; }
|
public readonly string Name;
|
||||||
public Transform3D Transform { get; }
|
public readonly Transform3D Transform;
|
||||||
public Color Color { get; }
|
public readonly Color Color;
|
||||||
|
|
||||||
public VmcExtLight(OscMessage m) : base(m.Address)
|
public VmcExtLight(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtMidiCcBit : VmcMessage
|
public class VmcExtMidiCcBit : VmcMessage
|
||||||
{
|
{
|
||||||
public int Knob { get; }
|
public readonly int Knob;
|
||||||
public int Active { get; }
|
public readonly int Active;
|
||||||
public VmcExtMidiCcBit(OscMessage m) : base(m.Address)
|
public VmcExtMidiCcBit(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
if (m.Data[0].Type != 'i')
|
if (m.Data[0].Type != 'i')
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtMidiCcVal : VmcMessage
|
public class VmcExtMidiCcVal : VmcMessage
|
||||||
{
|
{
|
||||||
public int Knob { get; }
|
public readonly int Knob;
|
||||||
public float Value { get; }
|
public readonly float Value;
|
||||||
public VmcExtMidiCcVal(OscMessage m) : base(m.Address)
|
public VmcExtMidiCcVal(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
if (m.Data[0].Type != 'i')
|
if (m.Data[0].Type != 'i')
|
||||||
|
|
|
@ -23,10 +23,10 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtMidiNote : VmcMessage
|
public class VmcExtMidiNote : VmcMessage
|
||||||
{
|
{
|
||||||
public int Active { get; }
|
public readonly int Active;
|
||||||
public int Channel { get; }
|
public readonly int Channel;
|
||||||
public int Note { get; }
|
public readonly int Note;
|
||||||
public float Velocity { get; }
|
public readonly float Velocity;
|
||||||
|
|
||||||
public VmcExtMidiNote(OscMessage m) : base(m.Address)
|
public VmcExtMidiNote(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,10 +24,10 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtOk : VmcMessage
|
public class VmcExtOk : VmcMessage
|
||||||
{
|
{
|
||||||
public int Loaded { get; }
|
public readonly int Loaded;
|
||||||
public int? CalibrationState { get; }
|
public readonly int? CalibrationState;
|
||||||
public int? CalibrationMode { get; }
|
public readonly int? CalibrationMode;
|
||||||
public int? TrackingStatus { get; }
|
public readonly int? TrackingStatus;
|
||||||
|
|
||||||
public VmcExtOk(int loaded) : base(new OscAddress("/VMC/Ext/OK"))
|
public VmcExtOk(int loaded) : base(new OscAddress("/VMC/Ext/OK"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtOpt : VmcMessage
|
public class VmcExtOpt : VmcMessage
|
||||||
{
|
{
|
||||||
public string option { get; }
|
public readonly string option;
|
||||||
|
|
||||||
public VmcExtOpt(OscMessage m) : base(m.Address)
|
public VmcExtOpt(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,9 +24,9 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtRcv : VmcMessage
|
public class VmcExtRcv : VmcMessage
|
||||||
{
|
{
|
||||||
public int Enable { get; }
|
public readonly int Enable;
|
||||||
public int Port { get; }
|
public readonly int Port;
|
||||||
public string IpAddress { get; }
|
public readonly string IpAddress;
|
||||||
|
|
||||||
public VmcExtRcv(OscMessage m) : base(m.Address)
|
public VmcExtRcv(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtRemote : VmcMessage
|
public class VmcExtRemote : VmcMessage
|
||||||
{
|
{
|
||||||
public string Service { get; }
|
public readonly string Service;
|
||||||
public string Json { get; }
|
public readonly string Json;
|
||||||
|
|
||||||
public VmcExtRemote(OscMessage m) : base(m.Address)
|
public VmcExtRemote(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,11 +25,11 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtRootPos : VmcMessage
|
public class VmcExtRootPos : VmcMessage
|
||||||
{
|
{
|
||||||
public string Name { get; }
|
public readonly string Name;
|
||||||
public Transform3D Transform { get; }
|
public readonly Transform3D Transform;
|
||||||
|
|
||||||
public Vector3? Scale { get; }
|
public readonly Vector3? Scale;
|
||||||
public Vector3? Offset { get; }
|
public readonly Vector3? Offset;
|
||||||
|
|
||||||
public VmcExtRootPos(OscMessage m) : base(m.Address)
|
public VmcExtRootPos(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSetCalibExec : VmcMessage
|
public class VmcExtSetCalibExec : VmcMessage
|
||||||
{
|
{
|
||||||
public int Mode { get; }
|
public readonly int Mode;
|
||||||
|
|
||||||
public VmcExtSetCalibExec(OscMessage m) : base(m.Address)
|
public VmcExtSetCalibExec(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSetConfig : VmcMessage
|
public class VmcExtSetConfig : VmcMessage
|
||||||
{
|
{
|
||||||
public string Path { get; }
|
public readonly string Path;
|
||||||
|
|
||||||
public VmcExtSetConfig(OscMessage m) : base(m.Address)
|
public VmcExtSetConfig(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSetEye : VmcMessage
|
public class VmcExtSetEye : VmcMessage
|
||||||
{
|
{
|
||||||
public int Enable { get; }
|
public readonly int Enable;
|
||||||
public Vector3 Position { get; }
|
public readonly Vector3 Position;
|
||||||
|
|
||||||
public VmcExtSetEye(OscMessage m) : base(m.Address)
|
public VmcExtSetEye(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,12 +23,12 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSetPeriod : VmcMessage
|
public class VmcExtSetPeriod : VmcMessage
|
||||||
{
|
{
|
||||||
public int Status { get; }
|
public readonly int Status;
|
||||||
public int Root { get; }
|
public readonly int Root;
|
||||||
public int Bone { get; }
|
public readonly int Bone;
|
||||||
public int BlendShape { get; }
|
public readonly int BlendShape;
|
||||||
public int Camera { get; }
|
public readonly int Camera;
|
||||||
public int Devices { get; }
|
public readonly int Devices;
|
||||||
|
|
||||||
public VmcExtSetPeriod(OscMessage m) : base(m.Address)
|
public VmcExtSetPeriod(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSetRes : VmcMessage
|
public class VmcExtSetRes : VmcMessage
|
||||||
{
|
{
|
||||||
public string Response { get; }
|
public readonly string Response;
|
||||||
|
|
||||||
public VmcExtSetRes(OscMessage m) : base(m.Address)
|
public VmcExtSetRes(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSetShortcut : VmcMessage
|
public class VmcExtSetShortcut : VmcMessage
|
||||||
{
|
{
|
||||||
public string Shortcut { get; }
|
public readonly string Shortcut;
|
||||||
|
|
||||||
public VmcExtSetShortcut(OscMessage m) : base(m.Address)
|
public VmcExtSetShortcut(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,13 +18,12 @@
|
||||||
|
|
||||||
using Godot;
|
using Godot;
|
||||||
using godotOscSharp;
|
using godotOscSharp;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace godotVmcSharp
|
namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSettingColor : VmcMessage
|
public class VmcExtSettingColor : VmcMessage
|
||||||
{
|
{
|
||||||
public Color Color { get; }
|
public readonly Color Color;
|
||||||
|
|
||||||
public VmcExtSettingColor(OscMessage m) : base(m.Address)
|
public VmcExtSettingColor(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
@ -61,7 +60,7 @@ namespace godotVmcSharp
|
||||||
Color = color;
|
Color = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OscMessage ToMessage()
|
public new OscMessage ToMessage()
|
||||||
{
|
{
|
||||||
return new OscMessage(Addr, new System.Collections.Generic.List<OscArgument>{
|
return new OscMessage(Addr, new System.Collections.Generic.List<OscArgument>{
|
||||||
new OscArgument(Color.R, 'f'),
|
new OscArgument(Color.R, 'f'),
|
||||||
|
|
|
@ -23,10 +23,10 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtSettingWin : VmcMessage
|
public class VmcExtSettingWin : VmcMessage
|
||||||
{
|
{
|
||||||
public int IsTopMost { get; }
|
public readonly int IsTopMost;
|
||||||
public int IsTransparent { get; }
|
public readonly int IsTransparent;
|
||||||
public int WindowClickThrough { get; }
|
public readonly int WindowClickThrough;
|
||||||
public int HideBorder { get; }
|
public readonly int HideBorder;
|
||||||
|
|
||||||
public VmcExtSettingWin(OscMessage m) : base(m.Address)
|
public VmcExtSettingWin(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtT : VmcMessage
|
public class VmcExtT : VmcMessage
|
||||||
{
|
{
|
||||||
public float Time { get; }
|
public readonly float Time;
|
||||||
public VmcExtT(godotOscSharp.OscMessage m) : base(m.Address)
|
public VmcExtT(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
if (m.Data.Count != 1)
|
if (m.Data.Count != 1)
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ namespace godotVmcSharp
|
||||||
Time = (float)m.Data[0].Value;
|
Time = (float)m.Data[0].Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public VmcExtT(float time) : base(new godotOscSharp.OscAddress("/VMC/Ext/T"))
|
public VmcExtT(float time) : base(new OscAddress("/VMC/Ext/T"))
|
||||||
{
|
{
|
||||||
Time = time;
|
Time = time;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,9 +24,9 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtVrm : VmcMessage
|
public class VmcExtVrm : VmcMessage
|
||||||
{
|
{
|
||||||
public string Path { get; }
|
public readonly string Path;
|
||||||
public string Title { get; }
|
public readonly string Title;
|
||||||
public string Hash { get; }
|
public readonly string Hash;
|
||||||
|
|
||||||
public VmcExtVrm(OscMessage m) : base(m.Address)
|
public VmcExtVrm(OscMessage m) : base(m.Address)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,16 +22,16 @@ namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcMessage
|
public class VmcMessage
|
||||||
{
|
{
|
||||||
public godotOscSharp.OscAddress Addr { get; }
|
public readonly OscAddress Addr;
|
||||||
|
|
||||||
public VmcMessage(godotOscSharp.OscAddress address)
|
public VmcMessage(OscAddress address)
|
||||||
{
|
{
|
||||||
Addr = address;
|
Addr = address;
|
||||||
}
|
}
|
||||||
|
|
||||||
public godotOscSharp.OscMessage ToMessage()
|
public OscMessage ToMessage()
|
||||||
{
|
{
|
||||||
return new godotOscSharp.OscMessage(Addr);
|
return new OscMessage(Addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user