Added Unity project files
This commit is contained in:
@ -0,0 +1,70 @@
|
||||
using System;
|
||||
|
||||
namespace VRC.SDK3.ClientSim
|
||||
{
|
||||
[Serializable]
|
||||
public class ClientSimPlayerAudioData : IClientSimPlayerAudioData
|
||||
{
|
||||
public float voiceVolumetricRadius = 0;
|
||||
public float voiceDistanceNear = 0;
|
||||
public float voiceDistanceFar = 25;
|
||||
public float voiceGain = 15;
|
||||
public bool voiceLowpass = false;
|
||||
|
||||
public float avatarAudioVolumetricRadius = 40;
|
||||
public float avatarAudioNearRadius = 40;
|
||||
public float avatarAudioFarRadius = 40;
|
||||
public float avatarAudioGain = 10;
|
||||
public bool avatarAudioCustomCurve;
|
||||
public bool avatarAudioForceSpatial;
|
||||
|
||||
#region Player Audio
|
||||
|
||||
public void SetVoiceGain(float value) => voiceGain = value;
|
||||
public void SetVoiceDistanceNear(float value) => voiceDistanceNear = value;
|
||||
public void SetVoiceDistanceFar(float value) => voiceDistanceFar = value;
|
||||
public void SetVoiceVolumetricRadius(float value) => voiceVolumetricRadius = value;
|
||||
public void SetVoiceLowpass(bool value) => voiceLowpass = value;
|
||||
|
||||
public float GetVoiceGain() => voiceGain;
|
||||
public float GetVoiceDistanceNear() => voiceDistanceNear;
|
||||
public float GetVoiceDistanceFar() => voiceDistanceFar;
|
||||
public float GetVoiceVolumetricRadius() => voiceVolumetricRadius;
|
||||
public bool GetVoiceLowpass() => voiceLowpass;
|
||||
#endregion
|
||||
|
||||
#region Avatar Audio
|
||||
|
||||
public void SetAvatarAudioVolumetricRadius(float value)
|
||||
{
|
||||
avatarAudioVolumetricRadius = value;
|
||||
}
|
||||
|
||||
public void SetAvatarAudioNearRadius(float value)
|
||||
{
|
||||
avatarAudioNearRadius = value;
|
||||
}
|
||||
|
||||
public void SetAvatarAudioFarRadius(float value)
|
||||
{
|
||||
avatarAudioFarRadius = value;
|
||||
}
|
||||
|
||||
public void SetAvatarAudioGain(float value)
|
||||
{
|
||||
avatarAudioGain = value;
|
||||
}
|
||||
|
||||
public void SetAvatarAudioForceSpatial(bool value)
|
||||
{
|
||||
avatarAudioForceSpatial = value;
|
||||
}
|
||||
|
||||
public void SetAvatarAudioCustomCurve(bool value)
|
||||
{
|
||||
avatarAudioCustomCurve = value;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b5b48cc61d892d4b92c2736dc813f7c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,89 @@
|
||||
using System;
|
||||
|
||||
namespace VRC.SDK3.ClientSim
|
||||
{
|
||||
[Serializable]
|
||||
public class ClientSimPlayerLocomotionData : IClientSimPlayerLocomotionData
|
||||
{
|
||||
private const float DEFAULT_RUN_SPEED = 4;
|
||||
private const float DEFAULT_WALK_SPEED = 2;
|
||||
|
||||
public float walkSpeed = DEFAULT_WALK_SPEED;
|
||||
public float strafeSpeed = DEFAULT_WALK_SPEED;
|
||||
public float runSpeed = DEFAULT_RUN_SPEED;
|
||||
public float jumpSpeed;
|
||||
public float gravityStrength = 1f;
|
||||
public bool immobilized = false;
|
||||
public bool useLegacyLocomotion = false;
|
||||
|
||||
public float GetJump()
|
||||
{
|
||||
return jumpSpeed;
|
||||
}
|
||||
|
||||
public void SetJump(float value)
|
||||
{
|
||||
jumpSpeed = value;
|
||||
}
|
||||
|
||||
public float GetRunSpeed()
|
||||
{
|
||||
return runSpeed;
|
||||
}
|
||||
|
||||
public void SetRunSpeed(float value)
|
||||
{
|
||||
runSpeed = value;
|
||||
}
|
||||
|
||||
public float GetWalkSpeed()
|
||||
{
|
||||
return walkSpeed;
|
||||
}
|
||||
|
||||
public void SetWalkSpeed(float value)
|
||||
{
|
||||
walkSpeed = value;
|
||||
}
|
||||
|
||||
public float GetStrafeSpeed()
|
||||
{
|
||||
return strafeSpeed;
|
||||
}
|
||||
|
||||
public void SetStrafeSpeed(float value)
|
||||
{
|
||||
strafeSpeed = value;
|
||||
}
|
||||
|
||||
public float GetGravityStrength()
|
||||
{
|
||||
return gravityStrength;
|
||||
}
|
||||
|
||||
public void SetGravityStrength(float value)
|
||||
{
|
||||
gravityStrength = value;
|
||||
}
|
||||
|
||||
public bool GetImmobilized()
|
||||
{
|
||||
return immobilized;
|
||||
}
|
||||
|
||||
public void SetImmobilized(bool value)
|
||||
{
|
||||
immobilized = value;
|
||||
}
|
||||
|
||||
public void SetUseLegacyLocomotion(bool value)
|
||||
{
|
||||
useLegacyLocomotion = value;
|
||||
}
|
||||
|
||||
public bool GetUseLegacyLocomotion()
|
||||
{
|
||||
return useLegacyLocomotion;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ada3387971992d648ae3741d3fae31bc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using VRC.SDKBase;
|
||||
|
||||
namespace VRC.SDK3.ClientSim
|
||||
{
|
||||
[Serializable]
|
||||
public class ClientSimPlayerPickupData : IClientSimPlayerPickupData
|
||||
{
|
||||
public bool pickupsEnabled = true;
|
||||
private VRC_Pickup _leftHandPickup;
|
||||
private VRC_Pickup _rightHandPickup;
|
||||
|
||||
public void SetPickupsEnabled(bool enabled)
|
||||
{
|
||||
pickupsEnabled = enabled;
|
||||
}
|
||||
|
||||
public bool GetPickupsEnabled()
|
||||
{
|
||||
return pickupsEnabled;
|
||||
}
|
||||
|
||||
public VRC_Pickup GetPickupInHand(VRC_Pickup.PickupHand hand)
|
||||
{
|
||||
switch (hand)
|
||||
{
|
||||
case VRC_Pickup.PickupHand.Left:
|
||||
return _leftHandPickup;
|
||||
case VRC_Pickup.PickupHand.Right:
|
||||
return _rightHandPickup;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetPickupInHand(VRC_Pickup.PickupHand hand, VRC_Pickup pickup)
|
||||
{
|
||||
switch (hand)
|
||||
{
|
||||
case VRC_Pickup.PickupHand.Left:
|
||||
_leftHandPickup = pickup;
|
||||
break;
|
||||
case VRC_Pickup.PickupHand.Right:
|
||||
_rightHandPickup = pickup;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33c07b59a4c05b34fbe53c47ba5000ec
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace VRC.SDK3.ClientSim
|
||||
{
|
||||
[Serializable]
|
||||
public class ClientSimPlayerTagsData : IClientSimPlayerTagsData
|
||||
{
|
||||
private readonly Dictionary<string, string> _tags = new Dictionary<string, string>();
|
||||
|
||||
public void ClearPlayerTags()
|
||||
{
|
||||
_tags.Clear();
|
||||
}
|
||||
|
||||
public void SetPlayerTag(string tagName, string tagValue)
|
||||
{
|
||||
_tags[tagName] = tagValue;
|
||||
}
|
||||
|
||||
public string GetPlayerTag(string tagName)
|
||||
{
|
||||
if (_tags.TryGetValue(tagName, out string tagValue))
|
||||
{
|
||||
return tagValue;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public bool HasPlayerTag(string tagName, string tagValue)
|
||||
{
|
||||
return GetPlayerTag(tagName) == tagValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b66bd713ab919834096fa0fc3b58869a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user