2022-10-05 08:34:04 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
2022-10-16 09:43:21 +08:00
|
|
|
|
using VRC.SDK3.Avatars.ScriptableObjects;
|
2022-10-05 08:34:04 +08:00
|
|
|
|
|
|
|
|
|
namespace net.fushizen.modular_avatar.core
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public struct ParameterConfig
|
|
|
|
|
{
|
|
|
|
|
public string nameOrPrefix;
|
|
|
|
|
public string remapTo;
|
|
|
|
|
public bool internalParameter, isPrefix;
|
2022-10-16 09:43:21 +08:00
|
|
|
|
public ParameterSyncType syncType;
|
|
|
|
|
public float defaultValue;
|
|
|
|
|
public bool saved;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ParameterSyncType
|
|
|
|
|
{
|
|
|
|
|
NotSynced,
|
|
|
|
|
Int,
|
|
|
|
|
Float,
|
|
|
|
|
Bool,
|
2022-10-05 08:34:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-10-16 07:35:16 +08:00
|
|
|
|
[DisallowMultipleComponent]
|
2022-10-05 08:34:04 +08:00
|
|
|
|
public class ModularAvatarParameters : AvatarTagComponent
|
|
|
|
|
{
|
|
|
|
|
public List<ParameterConfig> parameters = new List<ParameterConfig>();
|
|
|
|
|
}
|
|
|
|
|
}
|