Added Unity project files

This commit is contained in:
2026-06-07 16:58:24 +01:00
parent 3cc05d260b
commit 23bbcab156
3942 changed files with 453676 additions and 0 deletions

View File

@ -0,0 +1,56 @@
using VRC.SDK3.Video.Components.AVPro;
using VRC.SDK3.Video.Interfaces.AVPro;
using VRC.SDKBase;
namespace VRC.SDK3.ClientSim
{
// This class does nothing for videos, but by creating one and returning it in the VRCAVProVideoPlayer.Initialize
// callback, this prevents errors in Udon when calling Get IsReady and Get IsPlaying.
public class ClientSimAVProVideoStub : IAVProVideoPlayerInternal
{
public static IAVProVideoPlayerInternal InitializePlayer(VRCAVProVideoPlayer player)
{
return new ClientSimAVProVideoStub(player);
}
public bool Loop { get; set; }
public bool IsPlaying { get; }
public bool IsReady { get; }
public bool UseLowLatency { get; }
public int VideoWidth { get; private set; }
public int VideoHeight { get; private set; }
public ClientSimAVProVideoStub(VRCAVProVideoPlayer videoPlayer)
{
IsPlaying = false;
IsReady = false;
UseLowLatency = videoPlayer.UseLowLatency;
VideoWidth = videoPlayer.VideoWidth;
VideoHeight = videoPlayer.VideoHeight;
}
public float GetTime()
{
return 0;
}
public float GetDuration()
{
return 0;
}
public void LoadURL(VRCUrl url) { }
public void PlayURL(VRCUrl url) { }
public void Play() { }
public void Pause() { }
public void Stop() { }
public void SetTime(float value) { }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 90f637f368ac148458fe56865a2462c5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,55 @@
using System;
using System.Threading.Tasks;
using VRC.Economy;
using VRC.SDKBase;
namespace VRC.SDK3.ClientSim
{
public class UdonProductStub : IProduct
{
public UdonProductStub(IProduct product, VRCPlayerApi player)
{
ID = product.ID;
Name = product.Name;
Description = product.Description;
Buyer = player;
}
public string ID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public VRCPlayerApi Buyer { get; set; }
public bool Equals(IProduct other)
{
return this.ID == other.ID;
}
public Task<bool> Create()
{
throw new NotImplementedException();
}
public Task<bool> Delete()
{
throw new NotImplementedException();
}
public Task<IProduct[]> Purchase(
string variantID = null,
int totalPrice = 0,
int quantity = -1,
Action onPurchaseSuccess = null,
Action<string> onPurchaseError = null,
string analyticsLocationType = null,
string analyticsStoreId = null,
string analyticsWorldId = null,
string analyticsGroupId = null,
string analyticsCreatorId = null,
string giftingUserId = null,
string giftingInstanceId = null)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 14f39c87168b4631a64e13b7d86e8980
timeCreated: 1692332442