private static Point CreatePoint(Vector3 position, EFingerType fingerType, EFingerBoneType boneType) { return(new Point(position) { Name = string.Join(NameDivider, fingerType.ToString(), boneType.ToString()) }); }
/// /// @brief Send vibrating command to the server /// public override void VibrateFinger(EPositionType handType, EFingerType fingerType, ushort duration, byte strength) { if (m_sock != null) { sendToServer(GetVibrateFingerJSON(handType, fingerType, duration, strength)); } }
public Finger(EFingerType type) { this.Type = type; }
/// /// @brief Send vibrating command to the server /// protected String GetVibrateFingerJSON(EPositionType handType, EFingerType fingerType, ushort duration, byte strength) { return(String.Format("{{\"dst\":\"{0}\",\"type\":\"vibration\",\"data\":{{\"type\":{1},\"dur\":{2},\"str\":{3}}}}}\n", (handType == EPositionType.RightHand ? "rh" : "lh"), (int)fingerType, duration, strength)); }
abstract public void VibrateFinger(EPositionType handType, EFingerType fingerType, ushort duration, byte strength);