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