From 1642fabc93ee5d1ebc63bbe43bf4387eb4679f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=9C=8B?= <1918891542@qq.com> Date: Sat, 1 Jul 2023 12:33:16 +0800 Subject: [PATCH] Uma script update --- Assets/Scripts/DeepCopy.cs | 12 + ...A2UConfigData.cs.meta => DeepCopy.cs.meta} | 2 +- Assets/Scripts/UmaViewerBuilder.cs | 38 +- .../umamusume/Gallop/CameraEventCallback.cs | 15 + ...ta.cs.meta => CameraEventCallback.cs.meta} | 2 +- .../umamusume/Gallop/Live/CameraLookAt.cs | 33 ++ .../Gallop/Live/CameraLookAt.cs.meta | 11 + .../umamusume/Gallop/Live/CharaEffectInfo.cs | 13 + .../Gallop/Live/CharaEffectInfo.cs.meta | 11 + .../umamusume/Gallop/Live/CharacterObject.cs | 136 +++++ .../Gallop/Live/CharacterObject.cs.meta | 11 + .../Cutt/ILiveTimelineCharactorLocator.cs | 43 ++ .../ILiveTimelineCharactorLocator.cs.meta | 11 + .../Live/Cutt/ILiveTimelineMSQTarget.cs | 17 + .../Live/Cutt/ILiveTimelineMSQTarget.cs.meta | 11 + .../Gallop/Live/Cutt/LiveTimelineControl.cs | 7 + .../LiveTimelineA2UConfigData.cs | 27 - .../LiveTimelineA2UData.cs | 42 -- .../LiveTimelineBgColor1Data.cs | 4 +- .../LiveTimelineBlinkLightData.cs | 29 +- .../LiveTimelineCharaNodeData.cs | 33 ++ .../LiveTimelineCharaNodeData.cs.meta | 11 + .../LiveTimelineCharaPartsData.cs | 82 +-- .../LiveTimelineFacialToonData.cs | 44 +- .../LiveTimelineFormationOffsetData.cs | 143 ++--- .../LiveTimelineKeyFlashPlayerDataList.cs | 29 + ...LiveTimelineKeyFlashPlayerDataList.cs.meta | 11 + .../LiveTimelineMonitorControlData.cs | 16 +- .../LiveTimelineVolumeLightData.cs | 18 +- .../Gallop/Live/Cutt/LiveTimelineWorkSheet.cs | 19 +- .../Scripts/umamusume/Gallop/Live/Director.cs | 322 +++++++++++ .../umamusume/Gallop/Live/Director.cs.meta | 11 + .../umamusume/Gallop/Live/HandShakeCamera.cs | 30 ++ .../Gallop/Live/HandShakeCamera.cs.meta | 11 + .../Gallop/Live/LiveFadeController.cs | 18 + .../Gallop/Live/LiveFadeController.cs.meta | 11 + .../Gallop/Live/LiveTimeController.cs | 29 + .../Gallop/Live/LiveTimeController.cs.meta | 11 + .../Gallop/Live/LiveTitleController.cs | 29 + .../Gallop/Live/LiveTitleController.cs.meta | 11 + .../umamusume/Gallop/Live/Master3dLive.cs | 92 ++++ .../Gallop/Live/Master3dLive.cs.meta | 11 + .../umamusume/Gallop/Live/MonitorCamera.cs | 22 + .../Gallop/Live/MonitorCamera.cs.meta | 11 + .../umamusume/Gallop/Live/MultiCamera.cs | 14 + .../umamusume/Gallop/Live/MultiCamera.cs.meta | 11 + .../Gallop/Live/MultiCameraFinalComposite.cs | 38 ++ .../Live/MultiCameraFinalComposite.cs.meta | 11 + .../umamusume/Gallop/Live/RandomRatioTable.cs | 15 + .../Gallop/Live/RandomRatioTable.cs.meta | 11 + .../umamusume/Gallop/Live/RandomTable.cs | 12 + .../umamusume/Gallop/Live/RandomTable.cs.meta | 11 + .../umamusume/Gallop/Live/RandomTable_T.cs | 24 + .../Gallop/Live/RandomTable_T.cs.meta | 11 + Assets/Scripts/umamusume/Gallop/LiveDefine.cs | 19 + .../umamusume/Gallop/LiveDefine.cs.meta | 11 + .../umamusume/Gallop/ModelController.cs | 6 + Assets/Scripts/umamusume/Gallop/RaceDefine.cs | 507 ++++++++++++++++++ .../umamusume/Gallop/RaceDefine.cs.meta | 11 + .../Scripts/umamusume/Gallop/RandomNumber.cs | 11 + .../umamusume/Gallop/RandomNumber.cs.meta | 11 + .../Scripts/umamusume/Gallop/RegisterInfo.cs | 13 + .../umamusume/Gallop/RegisterInfo.cs.meta | 11 + Assets/Scripts/umamusume/Gallop/SongPart.cs | 102 ++++ .../Scripts/umamusume/Gallop/SongPart.cs.meta | 11 + 65 files changed, 2133 insertions(+), 238 deletions(-) create mode 100644 Assets/Scripts/DeepCopy.cs rename Assets/Scripts/{umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs.meta => DeepCopy.cs.meta} (83%) create mode 100644 Assets/Scripts/umamusume/Gallop/CameraEventCallback.cs rename Assets/Scripts/umamusume/Gallop/{Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs.meta => CameraEventCallback.cs.meta} (83%) create mode 100644 Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs.meta delete mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs delete mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Director.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Director.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs create mode 100644 Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/LiveDefine.cs create mode 100644 Assets/Scripts/umamusume/Gallop/LiveDefine.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/RaceDefine.cs create mode 100644 Assets/Scripts/umamusume/Gallop/RaceDefine.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/RandomNumber.cs create mode 100644 Assets/Scripts/umamusume/Gallop/RandomNumber.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/RegisterInfo.cs create mode 100644 Assets/Scripts/umamusume/Gallop/RegisterInfo.cs.meta create mode 100644 Assets/Scripts/umamusume/Gallop/SongPart.cs create mode 100644 Assets/Scripts/umamusume/Gallop/SongPart.cs.meta diff --git a/Assets/Scripts/DeepCopy.cs b/Assets/Scripts/DeepCopy.cs new file mode 100644 index 0000000..6dbc839 --- /dev/null +++ b/Assets/Scripts/DeepCopy.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class DeepCopy +{ + public static void CopyValues(T from, T to) + { + var json = JsonUtility.ToJson(from); + JsonUtility.FromJsonOverwrite(json, to); + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs.meta b/Assets/Scripts/DeepCopy.cs.meta similarity index 83% rename from Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs.meta rename to Assets/Scripts/DeepCopy.cs.meta index 252bdd6..b97cc32 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs.meta +++ b/Assets/Scripts/DeepCopy.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7edd0f77d9304bf44b5a176217fb45a0 +guid: 4227c56e1c9f9564591654f0d69ef04a MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/UmaViewerBuilder.cs b/Assets/Scripts/UmaViewerBuilder.cs index e50aff7..014cb4e 100644 --- a/Assets/Scripts/UmaViewerBuilder.cs +++ b/Assets/Scripts/UmaViewerBuilder.cs @@ -653,6 +653,14 @@ public class UmaViewerBuilder : MonoBehaviour a.CostumeId = "00"; } });//fill empty + GameObject MainLive = new GameObject("Live"); + GameObject Director = new GameObject("Director"); + + Gallop.Live.Director mController = Director.AddComponent(); + mController.live = live; + Instantiate(mController, MainLive.transform); + + Destroy(Director); } //Use CriWare Library @@ -840,7 +848,7 @@ public class UmaViewerBuilder : MonoBehaviour } } - public void RecursiveLoadAsset(UmaDatabaseEntry entry, bool IsSubAsset = false) + public void RecursiveLoadAsset(UmaDatabaseEntry entry, bool IsSubAsset = false, Transform SetParent = null ) { if (!string.IsNullOrEmpty(entry.Prerequisites)) { @@ -848,20 +856,20 @@ public class UmaViewerBuilder : MonoBehaviour { if (prerequisite.StartsWith(UmaDatabaseController.CharaPath)) { - RecursiveLoadAsset(Main.AbChara.FirstOrDefault(ab => ab.Name == prerequisite), true); + RecursiveLoadAsset(Main.AbChara.FirstOrDefault(ab => ab.Name == prerequisite), true, SetParent); } else if (prerequisite.StartsWith(UmaDatabaseController.MotionPath)) { - RecursiveLoadAsset(Main.AbMotions.FirstOrDefault(ab => ab.Name == prerequisite), true); + RecursiveLoadAsset(Main.AbMotions.FirstOrDefault(ab => ab.Name == prerequisite), true, SetParent); } else - RecursiveLoadAsset(Main.AbList.FirstOrDefault(ab => ab.Name == prerequisite), true); + RecursiveLoadAsset(Main.AbList.FirstOrDefault(ab => ab.Name == prerequisite), true, SetParent); } } - LoadAsset(entry, IsSubAsset); + LoadAsset(entry, IsSubAsset, SetParent); } - public void LoadAsset(UmaDatabaseEntry entry, bool IsSubAsset = false) + public void LoadAsset(UmaDatabaseEntry entry, bool IsSubAsset = false, Transform SetParent = null) { Debug.Log("Loading " + entry.Name); if (Main.LoadedBundles.ContainsKey(entry.Name)) return; @@ -877,7 +885,7 @@ public class UmaViewerBuilder : MonoBehaviour } Main.LoadedBundles.Add(entry.Name, bundle); UI.LoadedAssetsAdd(entry); - LoadBundle(bundle, IsSubAsset); + LoadBundle(bundle, IsSubAsset, SetParent); } else { @@ -885,7 +893,7 @@ public class UmaViewerBuilder : MonoBehaviour } } - private void LoadBundle(AssetBundle bundle, bool IsSubAsset = false) + private void LoadBundle(AssetBundle bundle, bool IsSubAsset = false, Transform SetParent = null) { if (bundle.name == "shader.a") { @@ -968,7 +976,7 @@ public class UmaViewerBuilder : MonoBehaviour { if (!IsSubAsset) { - LoadProp(go); + LoadProp(go, SetParent); } } break; @@ -1343,10 +1351,10 @@ public class UmaViewerBuilder : MonoBehaviour } } - private void LoadProp(GameObject go) + private void LoadProp(GameObject go, Transform SetParent = null) { var container = CurrentOtherContainer; - var prop = Instantiate(go, container.transform); + var prop = Instantiate(go, SetParent ? SetParent : container.transform); foreach (Renderer r in prop.GetComponentsInChildren()) { foreach (Material m in r.sharedMaterials) @@ -1357,6 +1365,14 @@ public class UmaViewerBuilder : MonoBehaviour } } + public void LoadAssetPath(string path, Transform SetParent) + { + foreach(var asset in UmaViewerMain.Instance.AbList.Where(a => a.Name == path)) + { + RecursiveLoadAsset(asset, false, SetParent); + } + } + private void LoadTear(GameObject go) { diff --git a/Assets/Scripts/umamusume/Gallop/CameraEventCallback.cs b/Assets/Scripts/umamusume/Gallop/CameraEventCallback.cs new file mode 100644 index 0000000..84b867e --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/CameraEventCallback.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop +{ + public class CameraEventCallback : MonoBehaviour + { + private Camera _targetCamera; // 0x18 + public Action OnPreCullCallback; // 0x20 + public Action OnPreRenderCallback; // 0x28 + public Action OnPostRenderCallback; // 0x30 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs.meta b/Assets/Scripts/umamusume/Gallop/CameraEventCallback.cs.meta similarity index 83% rename from Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs.meta rename to Assets/Scripts/umamusume/Gallop/CameraEventCallback.cs.meta index a0158d6..92ffdb2 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs.meta +++ b/Assets/Scripts/umamusume/Gallop/CameraEventCallback.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d165d55944a7c3e4e84b279b2a2c4ba6 +guid: e256de223a005bd4d86ba3c32ee917d1 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs b/Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs new file mode 100644 index 0000000..bd2f316 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs @@ -0,0 +1,33 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class CameraLookAt : MonoBehaviour + { + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private Camera _targetCamera; // 0x18 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private GameObject _attachObject; // 0x20 + private Transform _tmAttachObject; // 0x28 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private GameObject _translateObject; // 0x30 + private Transform _tmTranslateObject; // 0x38 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private GameObject _rotateObject; // 0x40 + private Transform _tmRotateObject; // 0x48 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private GameObject _fovObject; // 0x50 + private Transform _tmFOVObject; // 0x58 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private float _multiplyValue; // 0x60 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private float _fieldOfViewLimit; // 0x64 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private GameObject _cameraMotionObject; // 0x68 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private Animator _cameraAnimator; // 0x70 + private Quaternion _currentQuaternion; // 0x78 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs.meta new file mode 100644 index 0000000..5723073 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/CameraLookAt.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e70b835619985f0479bfea8430423159 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs b/Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs new file mode 100644 index 0000000..5e1b10b --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs @@ -0,0 +1,13 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class CharaEffectInfo + { + private GameObject _gameObject; // 0x10 + private Material[][] _materials; // 0x18 + private int _renderQueue; // 0x20 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs.meta new file mode 100644 index 0000000..f9e0d43 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/CharaEffectInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 29ac7f0fa72c4d642b0faca9b8be39af +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs b/Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs new file mode 100644 index 0000000..de50a33 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs @@ -0,0 +1,136 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using Gallop.Live.Cutt; +using System.Runtime.CompilerServices; + +namespace Gallop.Live +{ + public class CharacterObject : MonoBehaviour, ILiveTimelineCharactorLocator, ILiveTimelineMSQTarget + { + public enum RealtimeShadowType + { + HardShadow = 0, + SoftShadow = 1 + } + + public const int DRESS_COUNT = 2; + public const int DRESS_MAIN_INDEX = 0; + public const int DRESS_SUB_INDEX = 1; + private int _reserveDressModelCount; // 0x18 + private int _activeModelIndex; // 0x1C + private GameObject[] _modelObjectArray; // 0x20 + private Transform[] _modelTransformArray; // 0x28 + //private LiveModelController[] _liveModelControllerArray; // 0x30 + //private GallopSweatController[] _sweatControllerArray; // 0x38 + //private EyeTraceController[] _eyeTraceControllerArray; // 0x40 + //private LiveModelController.EyeTargetPositionSetter[] _eyeTargetSetter; // 0x48 + private const int EffectAttachNum = 26; + private Transform[,] _effectAttachTransformArray; // 0x50 + public int prevFrameWarmUpCyspring; // 0x58 + public int CurrentFrameEyeTrack; // 0x5C + private List _colliderListArray; // 0x60 + private bool _liveMSQControlled; // 0x68 + private float _liveMSQCurrentAnimStartTime; // 0x6C + private bool _bVisible; // 0x70 + private LiveCharaPosition _liveCharaStandingPosition; // 0x74 + private Vector3 _liveCharaInitialPosition; // 0x78 + private const float kLiveCharaHeadPositionOffsetHeight = 0.1f; + private int _liveCharaHeightLevel; // 0x84 + private float _liveCharaHeightValue; // 0x88 + private float _liveCharaHeightRatioBase; // 0x8C + private float _liveCharaHeightRatio; // 0x90 + private Vector3 _liveCharaFormationHeightRateOffset; // 0x94 + private bool _isPositionNodePositionAddParent; // 0xA0 + private LiveTimelineDefine.FacialEyeTrackTargetType _eyeTrackTargetType; // 0xA4 + private GameObject _softShadowCamera; // 0xC0 + private GameObject _softShadowReceiver; // 0xC8 + private Transform _softShadowCameraTrans; // 0xD0 + private Transform _softShadowReceiverTrans; // 0xD8 + private const string SoftShadowObjectName = "Shadow Camera"; + private CharacterObject.RealtimeShadowType _realtimeShadowType; // 0xE0 + private bool _enableRealtimeShadow; // 0xE4 + private bool _isMirror; // 0xE5 + //private CastShadowEffect _dynamicShadow; // 0xE8 + private int _characterDataIndex; // 0xF0 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private float _motionNoiseTime; // 0xF4 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private float _motionNoiseRate; // 0xF8 + private bool _isUpdateMotionNoiseTime; // 0xFC + protected bool _isLod; // 0xFD + protected Transform _parentDefaultTransform; // 0x100 + protected Transform _parentTransform; // 0x108 + protected AnimationState _bodyAnimationState; // 0x110 + private bool _isSetting; // 0x118 + protected bool _isMeshActiveAuto; // 0x119 + private readonly Dictionary _dicProps; // 0x120 + private readonly List _lstPropHashs; // 0x128 + //private FakeShadowController[] _shadowL; // 0x130 + //private FakeShadowController[] _shadowR; // 0x138 + //private FollowSpotLightController[] _followSpotLightControllers; // 0x140 + //private List _spotlight3dControllerList; // 0x148 + private Vector3 _eyeTrackDefaultPos; // 0x150 + + public int ReserveDressModelCount { get; } + public int ActiveModelIndex { get; } + public int LayerIndex { get; set; } + public Color EmissiveColor { get; set; } + public GameObject[] ModelObjectArray { get; } + public GameObject CurrentModelObject { get; } + public Transform[] ModelTransformArray { get; } + public Transform CurrentModelTransform { get; } + //public LiveModelController[] LiveModelControllerArray { get; } + //public LiveModelController CurrentLiveModelController { get; } + public EyeTraceController[] EyeTraceControllerArray { get; } + public Animation liveMSQAnimation { get; } + public bool liveMSQControlled { get; set; } + public AnimationState liveMSQCurrentAnimState { get; set; } + public float liveMSQCurrentAnimStartTime { get; set; } + public float heightRate { get; } + //public LiveIK IKCtrl { get; } + public bool liveCharaVisible { get; set; } + public LiveCharaPosition liveCharaStandingPosition { get; set; } + public Vector3 liveCharaInitialPosition { get; set; } + public Vector3 liveCharaPosition { get; } + public Quaternion liveCharaPositionLocalRotation { get; set; } + public Vector3 liveCharaHeadPosition { get; } + public Vector3 liveCharaWaistPosition { get; } + public Vector3 liveCharaLeftHandWristPosition { get; } + public Vector3 liveCharaLeftHandAttachPosition { get; } + public Vector3 liveCharaRightHandWristPosition { get; } + public Vector3 liveCharaRightHandAttachPosition { get; } + public Vector3 liveCharaChestPosition { get; } + public Vector3 liveCharaFootPosition { get; } + public Vector3 liveCharaConstHeightHeadPosition { get; } + public Vector3 liveCharaConstHeightWaistPosition { get; } + public Vector3 liveCharaConstHeightChestPosition { get; } + public Vector3 liveCharaInitialHeightHeadPosition { get; } + public Vector3 liveCharaInitialHeightWaistPosition { get; } + public Vector3 liveCharaInitialHeightChestPosition { get; } + public Vector3 liveCharaScale { get; } + public Transform liveParentDefaultTransform { get; set; } + public Transform liveParentTransform { get; set; } + public Transform liveRootTransform { get; } + public int liveCharaHeightLevel { get; set; } + public float liveCharaHeightValue { get; } + public float liveCharaHeightRatioBase { get; set; } + public float liveCharaHeightRatio { get; set; } + public Vector3 liveCharaFormationHeightRateOffset { get; set; } + public bool IsPositionNodePositionAddParent { get; set; } + public bool IsCastShadow { get; set; } + public float CySpringRate { get; set; } + public LiveTimelineDefine.FacialEyeTrackTargetType EyeTrackTargetType { get; set; } + public float EyeTrackVerticalRate { get; set; } + public float EyeTrackHorizontalRate { get; set; } + public Vector3 EyeTrackDirectWorldPosition { get; set; } + public CharacterObject.RealtimeShadowType realtimeShadowType { get; set; } + public bool enableRealtimeShadow { get; set; } + public bool IsMirror { get; set; } + public int CharacterDataIndex { get; set; } + public bool IsUpdateMotionNoiseTime { get; set; } + public bool IsSetting { get; } + public static string FollowSpotLightParentName { get; set; } + public FollowSpotLightController[] FollowSpotLightControllers { get; } + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs.meta new file mode 100644 index 0000000..f9c403e --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/CharacterObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2db4a9726d149bf4c8d4c8cca1d06ff6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs new file mode 100644 index 0000000..943ebbc --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs @@ -0,0 +1,43 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live.Cutt +{ + public interface ILiveTimelineCharactorLocator + { + public abstract bool liveCharaVisible { get; set; } + public abstract LiveCharaPosition liveCharaStandingPosition { get; set; } + public abstract Vector3 liveCharaInitialPosition { get; set; } + public abstract Vector3 liveCharaPosition { get; } + public abstract Quaternion liveCharaPositionLocalRotation { get; set; } + public abstract Vector3 liveCharaHeadPosition { get; } + public abstract Vector3 liveCharaWaistPosition { get; } + public abstract Vector3 liveCharaLeftHandWristPosition { get; } + public abstract Vector3 liveCharaLeftHandAttachPosition { get; } + public abstract Vector3 liveCharaRightHandAttachPosition { get; } + public abstract Vector3 liveCharaRightHandWristPosition { get; } + public abstract Vector3 liveCharaChestPosition { get; } + public abstract Vector3 liveCharaFootPosition { get; } + public abstract Vector3 liveCharaConstHeightHeadPosition { get; } + public abstract Vector3 liveCharaConstHeightWaistPosition { get; } + public abstract Vector3 liveCharaConstHeightChestPosition { get; } + public abstract Vector3 liveCharaInitialHeightHeadPosition { get; } + public abstract Vector3 liveCharaInitialHeightWaistPosition { get; } + public abstract Vector3 liveCharaInitialHeightChestPosition { get; } + public abstract Vector3 liveCharaScale { get; } + public abstract Transform liveParentDefaultTransform { get; set; } + public abstract Transform liveParentTransform { get; set; } + public abstract Transform liveRootTransform { get; } + public abstract int liveCharaHeightLevel { get; set; } + public abstract float liveCharaHeightValue { get; } + public abstract float liveCharaHeightRatioBase { get; set; } + public abstract float liveCharaHeightRatio { get; set; } + public abstract Vector3 liveCharaFormationHeightRateOffset { get; set; } + public abstract bool IsPositionNodePositionAddParent { get; set; } + public abstract bool IsCastShadow { get; set; } + public abstract float CySpringRate { get; set; } + public abstract int LayerIndex { set; } + public abstract Color EmissiveColor { set; } + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs.meta new file mode 100644 index 0000000..25a7acd --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineCharactorLocator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e45fd2046ce72d54d8e384609af1e05d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs new file mode 100644 index 0000000..e050019 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs @@ -0,0 +1,17 @@ +using RootMotion.FinalIK; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live.Cutt +{ + public interface ILiveTimelineMSQTarget + { + //public abstract LiveModelController[] LiveModelControllerArray { get; } + public abstract bool liveMSQControlled { get; set; } + public abstract AnimationState liveMSQCurrentAnimState { get; set; } + public abstract float liveMSQCurrentAnimStartTime { get; set; } + public abstract float heightRate { get; } + //public abstract LiveIK IKCtrl { get; } + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs.meta new file mode 100644 index 0000000..bf9a7b2 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/ILiveTimelineMSQTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc8d035e1edd59a4193a6f730829b03e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs index 87db6b6..eb6525c 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs @@ -7,10 +7,17 @@ namespace Gallop.Live.Cutt public class LiveTimelineControl : MonoBehaviour { public LiveTimelineData data; + public const int kTargetFps = 60; + public const float kTargetFpsF = 60; + public const float kFrameToSec = 0.016666668f; public Transform cameraPositionLocatorsRoot; public Transform cameraLookAtLocatorsRoot; [SerializeField] private Transform[] characterStandPosLocators; + public const float BaseCharaHeight = 158; + public const float BaseCharaHeightMin = 130; + public const float BaseCharaHeightMax = 190; + public const float BaseCharaHeightDiff = 60; public void CopyValues(T from, T to) { diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs deleted file mode 100644 index 12d2d62..0000000 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UConfigData.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace Gallop.Live.Cutt -{ - [System.Serializable] - public class LiveTimelineKeyA2UConfigData : LiveTimelineKeyWithInterpolate - { - public A2U.Blend blend; - public A2U.Order order; - public bool enable; - } - - [System.Serializable] - public class LiveTimelineKeyA2UConfigDataList : LiveTimelineKeyDataListTemplate - { - - } - - [System.Serializable] - public class LiveTimelineA2UConfigData : ILiveTimelineGroupDataWithName - { - private const string default_name = "A2UConfig"; - public LiveTimelineKeyA2UConfigDataList keys; - } -} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs deleted file mode 100644 index e41d60e..0000000 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineA2UData.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace Gallop.Live.Cutt -{ - [System.Serializable] - public class LiveTimelineKeyA2UData : LiveTimelineKeyWithInterpolate - { - private static readonly float MinOpacity; - private static readonly float MaxOpacity; - public Color spriteColor; - public Vector2 position; - public Vector2 scale; - public float rotationZ; - public int textureIndex; - public int appearanceRandomSeed; - public float spriteAppearance; - public int slopeRandomSeed; - public float spriteMinSlope; - public float spriteMaxSlope; - public float spriteScale; - public float spriteOpacity; - public float startSec; - public float speed; - public bool isFlick; - public bool enable; - } - - [System.Serializable] - public class LiveTimelineKeyA2UDataList : LiveTimelineKeyDataListTemplate - { - - } - - [System.Serializable] - public class LiveTimelineA2UData : ILiveTimelineGroupDataWithName - { - private const string default_name = "A2U"; - public LiveTimelineKeyA2UDataList keys; - } -} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBgColor1Data.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBgColor1Data.cs index ae7bd5b..ce29588 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBgColor1Data.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBgColor1Data.cs @@ -32,13 +32,14 @@ namespace Gallop.Live.Cutt public float outlineWidthPower; public Color outlineColor; public ModelController.OutlineColorBlend outlineColorBlend; + public LiveDefine.LightBlendMode LightBlendMode; + public bool IsProjector; public LiveTimelineKeyLoopType loopType; public int loopCount; public int loopExecutedCount; public int loopIntervalFrame; public bool isPasteLoopUnit; public bool isChangeLoopInterpolate; - public bool IsProjector; public float f32; public LiveTimelineKeyLoopType _loopType; public int _loopCount; @@ -56,6 +57,7 @@ namespace Gallop.Live.Cutt [System.Serializable] public class LiveTimelineBgColor1Data : ILiveTimelineGroupDataWithName { + private const string default_name = "BgColor1"; public LiveTimelineKeyBgColor1DataList keys; } } diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBlinkLightData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBlinkLightData.cs index 88b9a60..e8c80f4 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBlinkLightData.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineBlinkLightData.cs @@ -25,20 +25,21 @@ namespace Gallop.Live.Cutt [System.Serializable] public class LiveTimelineKeyBlinkLightData : LiveTimelineKeyWithInterpolate { - public Color[] color0Array; - public Color[] color1Array; - public float[] powerArray; - public bool[] isReverseHueArray; - public BlinkLightPattern pattern; - public BlinkLightColorType colorType; - public float powerMin; - public float powerMax; - public int loopCount; - public float waitTime; - public float turnOnTime; - public float turnOffTime; - public float keepTime; - public float intervalTime; + public LiveDefine.LightBlendMode LightBlendMode; // 0x30 + public Color[] color0Array; // 0x38 + public Color[] color1Array; // 0x40 + public float[] powerArray; // 0x48 + public bool[] isReverseHueArray; // 0x50 + public BlinkLightPattern pattern; // 0x58 + public BlinkLightColorType colorType; // 0x5C + public float powerMin; // 0x60 + public float powerMax; // 0x64 + public int loopCount; // 0x68 + public float waitTime; // 0x6C + public float turnOnTime; // 0x70 + public float turnOffTime; // 0x74 + public float keepTime; // 0x78 + public float intervalTime; // 0x7C } [System.Serializable] diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs new file mode 100644 index 0000000..c066696 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live.Cutt +{ + [Serializable] + public class LiveTimelineKeyCharaNodeData : LiveTimelineKeyWithInterpolate + { + public LiveCharaPositionFlag PositionFlag; + public bool EnableHeadCySpring; + public bool EnableEarCySpring; + public bool EnableBodyCySpring; + public bool EnableSkirtCySpring; + public bool EnableTailCySpring; + public List TargetCySpringBornNameList; + public List TargetCySpringBornEnableList; + } + + [Serializable] + public class LiveTimelineKeyCharaNodeDataList : LiveTimelineKeyDataListTemplate + { + + } + + [Serializable] + public class LiveTimelineCharaNodeData : ILiveTimelineGroupDataWithName + { + private const string DEFAULT_NAME = "CharaNode"; + public LiveTimelineKeyCharaNodeDataList keys; + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs.meta new file mode 100644 index 0000000..ec8f622 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaNodeData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b573cfc026eef1d498f6bb7bf1edac82 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaPartsData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaPartsData.cs index 1698e2b..b35c791 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaPartsData.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineCharaPartsData.cs @@ -2,6 +2,7 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using Gallop.Cutt.Util; +using Cutt; namespace Gallop.Live.Cutt { @@ -20,42 +21,47 @@ namespace Gallop.Live.Cutt [System.Serializable] public class LiveTimelineCharaPartsData { - private const int DATA_LIST_SIZE = 18; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList centerKeys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList left1Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList right1Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList left2Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList right2Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place06Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place07Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place08Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place09Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place10Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place11Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place12Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place13Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place14Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place15Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place16Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place17Keys; - [SerializeField] - private LiveTimelineKeyCharaPartsDataList place18Keys; - } + private const int DATA_LIST_SIZE = 20; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList centerKeys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList left1Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList right1Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList left2Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList right2Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place06Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place07Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place08Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place09Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place10Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place11Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place12Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place13Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place14Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place15Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place16Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place17Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place18Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place19Keys; + [SerializeField] + private LiveTimelineKeyCharaPartsDataList place20Keys; + private readonly ILiveTimelineKeyDataList[] _cacheDataList; + } } \ No newline at end of file diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFacialToonData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFacialToonData.cs index bce82be..d7d5488 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFacialToonData.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFacialToonData.cs @@ -1,3 +1,4 @@ +using Cutt; using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -26,24 +27,27 @@ namespace Gallop.Live.Cutt [System.Serializable] public class LiveTimelineFacialToonData { - public const int DATA_LIST_SIZE = 18; - public LiveTimelineKeyFacialToonDataList centerKeys; - public LiveTimelineKeyFacialToonDataList left1Keys; - public LiveTimelineKeyFacialToonDataList right1Keys; - public LiveTimelineKeyFacialToonDataList left2Keys; - public LiveTimelineKeyFacialToonDataList right2Keys; - public LiveTimelineKeyFacialToonDataList motion5Keys; - public LiveTimelineKeyFacialToonDataList motion6Keys; - public LiveTimelineKeyFacialToonDataList motion7Keys; - public LiveTimelineKeyFacialToonDataList motion8Keys; - public LiveTimelineKeyFacialToonDataList motion9Keys; - public LiveTimelineKeyFacialToonDataList motion10Keys; - public LiveTimelineKeyFacialToonDataList motion11Keys; - public LiveTimelineKeyFacialToonDataList motion12Keys; - public LiveTimelineKeyFacialToonDataList motion13Keys; - public LiveTimelineKeyFacialToonDataList motion14Keys; - public LiveTimelineKeyFacialToonDataList motion15Keys; - public LiveTimelineKeyFacialToonDataList motion16Keys; - public LiveTimelineKeyFacialToonDataList motion17Keys; - } + public const int DATA_LIST_SIZE = 20; + public LiveTimelineKeyFacialToonDataList centerKeys; // 0x10 + public LiveTimelineKeyFacialToonDataList left1Keys; // 0x18 + public LiveTimelineKeyFacialToonDataList right1Keys; // 0x20 + public LiveTimelineKeyFacialToonDataList left2Keys; // 0x28 + public LiveTimelineKeyFacialToonDataList right2Keys; // 0x30 + public LiveTimelineKeyFacialToonDataList motion5Keys; // 0x38 + public LiveTimelineKeyFacialToonDataList motion6Keys; // 0x40 + public LiveTimelineKeyFacialToonDataList motion7Keys; // 0x48 + public LiveTimelineKeyFacialToonDataList motion8Keys; // 0x50 + public LiveTimelineKeyFacialToonDataList motion9Keys; // 0x58 + public LiveTimelineKeyFacialToonDataList motion10Keys; // 0x60 + public LiveTimelineKeyFacialToonDataList motion11Keys; // 0x68 + public LiveTimelineKeyFacialToonDataList motion12Keys; // 0x70 + public LiveTimelineKeyFacialToonDataList motion13Keys; // 0x78 + public LiveTimelineKeyFacialToonDataList motion14Keys; // 0x80 + public LiveTimelineKeyFacialToonDataList motion15Keys; // 0x88 + public LiveTimelineKeyFacialToonDataList motion16Keys; // 0x90 + public LiveTimelineKeyFacialToonDataList motion17Keys; // 0x98 + public LiveTimelineKeyFacialToonDataList motion18Keys; // 0xA0 + public LiveTimelineKeyFacialToonDataList motion19Keys; // 0xA8 + private ILiveTimelineKeyDataList[] _cacheDataList; // 0xB0 + } } diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFormationOffsetData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFormationOffsetData.cs index d7c1198..0e568b1 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFormationOffsetData.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineFormationOffsetData.cs @@ -1,3 +1,4 @@ +using Cutt; using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -46,52 +47,60 @@ namespace Gallop.Live.Cutt HandAttachR = 2 } - public Vector3 Position; - public float RotationY; - public float LocalRotationY; - public bool visible; - public int DressIndex; - public bool warmUpCySpring; - public bool isEnabledOffset; - public Vector3 offsetMaxPosition; - public Vector3 offsetMinPosition; - public bool isEnabledOffsetCameraTargetChara; - public bool IsWorldSpace; - public Vector3 WorldSpaceOrigin; - public float WorldRotationY; - public bool IsLookAtWorldOrigin; - public bool IsPositionAddParentNode; - public bool IsCastShadow; - public float CySpringRate; - public bool IsLayerIndex; - public int LayerIndex; - public bool IsEmissiveColor; - public Color EmissiveColor; - public float EmissiveScrollTimeScale; - public float EmissiveScrollEnergyScale; - public LiveTimelineKeyFormationOffsetData.IKSystemType IKSystem; - public int IKSystemParam1; - public int IKSystemParam2; - public int IKSystemParam3; - public int IKSystemParam4; - public int PositionPriority; - public bool IsEnabledIKMicStandLOffset; - public bool IsEnabledIKMicStandROffset; - public Vector3 IKMicStandLOffsetHigh; - public Vector3 IKMicStandLOffsetLow; - public Vector3 IKMicStandROffsetHigh; - public Vector3 IKMicStandROffsetLow; - [SerializeField] - private int ver; - [SerializeField] - private Vector2 posXZ; - [SerializeField] - private float posY; - [SerializeField] - private Vector3 position; - [SerializeField] - private float rotY; - } + public Vector3 Position; + public float RotationY; + public float LocalRotationY; + public bool visible; + public int DressIndex; + public bool warmUpCySpring; + public bool isEnabledOffset; + public Vector3 offsetMaxPosition; + public Vector3 offsetMinPosition; + public bool isEnabledOffsetCameraTargetChara; + public bool IsWorldSpace; + public Vector3 WorldSpaceOrigin; + public float WorldRotationY; + public bool IsLookAtWorldOrigin; + public bool IsPositionAddParentNode; + public string ParentObjectName; + public bool IsCastShadow; + public float CySpringRate; + public bool IsLayerIndex; + public int LayerIndex; + public bool IsEmissiveColor; + public Color EmissiveColor; + public float EmissiveScrollTimeScale; + public float EmissiveScrollEnergyScale; + private static readonly string[] IKSYSTEM_HOLD_HAND_TARGET_NODE_NAME_ARRAY; + public LiveTimelineKeyFormationOffsetData.IKSystemType IKSystem; + public int IKSystemParam1; + public int IKSystemParam2; + public int IKSystemParam3; + public int IKSystemParam4; + public int PositionPriority; + public bool IsEnabledIKMicStandLOffset; + public bool IsEnabledIKMicStandROffset; + public Vector3 IKMicStandLOffsetHigh; + public Vector3 IKMicStandLOffsetLow; + public Vector3 IKMicStandROffsetHigh; + public Vector3 IKMicStandROffsetLow; + [SerializeField] + private int ver; + [SerializeField] + private Vector2 posXZ; + [SerializeField] + private float posY; + [SerializeField] + private Vector3 position; + [SerializeField] + private float rotY; + private const int ATTR_RESET_CLOTH = 65536; + private const int ATTR_PARENT_OBJECT = 131072; + private int _parentObjectNameHash; + private bool _isUpdatedParentObject; + private Transform _parentObjectTransform; + private int _parentObjectTargetCount; + } [System.Serializable] public class LiveTimelineKeyFormationOffsetDataList : LiveTimelineKeyDataListTemplate @@ -102,23 +111,27 @@ namespace Gallop.Live.Cutt [System.Serializable] public class LiveTimelineFormationOffsetData { - public LiveTimelineKeyFormationOffsetDataList centerKeys; // 0x10 - public LiveTimelineKeyFormationOffsetDataList left1Keys; // 0x18 - public LiveTimelineKeyFormationOffsetDataList right1Keys; // 0x20 - public LiveTimelineKeyFormationOffsetDataList left2Keys; // 0x28 - public LiveTimelineKeyFormationOffsetDataList right2Keys; // 0x30 - public LiveTimelineKeyFormationOffsetDataList place06Keys; // 0x38 - public LiveTimelineKeyFormationOffsetDataList place07Keys; // 0x40 - public LiveTimelineKeyFormationOffsetDataList place08Keys; // 0x48 - public LiveTimelineKeyFormationOffsetDataList place09Keys; // 0x50 - public LiveTimelineKeyFormationOffsetDataList place10Keys; // 0x58 - public LiveTimelineKeyFormationOffsetDataList place11Keys; // 0x60 - public LiveTimelineKeyFormationOffsetDataList place12Keys; // 0x68 - public LiveTimelineKeyFormationOffsetDataList place13Keys; // 0x70 - public LiveTimelineKeyFormationOffsetDataList place14Keys; // 0x78 - public LiveTimelineKeyFormationOffsetDataList place15Keys; // 0x80 - public LiveTimelineKeyFormationOffsetDataList place16Keys; // 0x88 - public LiveTimelineKeyFormationOffsetDataList place17Keys; // 0x90 - public LiveTimelineKeyFormationOffsetDataList place18Keys; // 0x98 - } + private const int DATA_LIST_SIZE = 20; + public LiveTimelineKeyFormationOffsetDataList centerKeys; // 0x10 + public LiveTimelineKeyFormationOffsetDataList left1Keys; // 0x18 + public LiveTimelineKeyFormationOffsetDataList right1Keys; // 0x20 + public LiveTimelineKeyFormationOffsetDataList left2Keys; // 0x28 + public LiveTimelineKeyFormationOffsetDataList right2Keys; // 0x30 + public LiveTimelineKeyFormationOffsetDataList place06Keys; // 0x38 + public LiveTimelineKeyFormationOffsetDataList place07Keys; // 0x40 + public LiveTimelineKeyFormationOffsetDataList place08Keys; // 0x48 + public LiveTimelineKeyFormationOffsetDataList place09Keys; // 0x50 + public LiveTimelineKeyFormationOffsetDataList place10Keys; // 0x58 + public LiveTimelineKeyFormationOffsetDataList place11Keys; // 0x60 + public LiveTimelineKeyFormationOffsetDataList place12Keys; // 0x68 + public LiveTimelineKeyFormationOffsetDataList place13Keys; // 0x70 + public LiveTimelineKeyFormationOffsetDataList place14Keys; // 0x78 + public LiveTimelineKeyFormationOffsetDataList place15Keys; // 0x80 + public LiveTimelineKeyFormationOffsetDataList place16Keys; // 0x88 + public LiveTimelineKeyFormationOffsetDataList place17Keys; // 0x90 + public LiveTimelineKeyFormationOffsetDataList place18Keys; // 0x98 + public LiveTimelineKeyFormationOffsetDataList place19Keys; // 0xA0 + public LiveTimelineKeyFormationOffsetDataList place20Keys; // 0xA8 + private readonly ILiveTimelineKeyDataList[] _cacheDataList; // 0xB0 + } } diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs new file mode 100644 index 0000000..0cccb26 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live.Cutt +{ + public enum LiveFlashPlayerActionType + { + PlayIn = 0, + None = 1, + Max = 2, + } + + [Serializable] + public class LiveTimelineKeyFlashPlayerData : LiveTimelineKey + { + public LiveFlashPlayerActionType _actionType; + public string CueSheetName; + public string CueName; + } + + [Serializable] + public class LiveTimelineKeyFlashPlayerDataList : LiveTimelineKeyDataListTemplate + { + + } +} + diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs.meta new file mode 100644 index 0000000..f2ef711 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineKeyFlashPlayerDataList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83a535f6c000a1c478251b774206a19a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineMonitorControlData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineMonitorControlData.cs index d2a1321..a8a1bc4 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineMonitorControlData.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineMonitorControlData.cs @@ -23,6 +23,14 @@ namespace Gallop.Live.Cutt public LiveTimelineKeyMonitorControlData.ChangeUVSetting.ChangeUVSettingCondition[] ConditionArray; } + public enum ExtraContent + { + None = 0, + ChampionsMeetingLogo = 1, + ChampionsMeetingGoal = 2 + } + + public const int CHANGE_UV_SETTING_MAX = 1; public Vector2 position; public Vector2 size; public int dispID; @@ -31,13 +39,19 @@ namespace Gallop.Live.Cutt public int playStartOffsetFrame; public float blendFactor; public Color colorFade; + public Color BaseColor; public int RenderQueueNo; public bool IsRenderQueue; public int DispID2; public float CrossFadeRate; - public int LightImageNo; + public int LightImageNo; public int LightImageNo2; public LiveTimelineKeyMonitorControlData.ChangeUVSetting[] ChangeUVSettingArray; + public LiveTimelineKeyMonitorControlData.ExtraContent extraContent; + private const int ATTR_MULTI = 65536; + private const int ATTR_PLAY_REVERSE = 131072; + private const int ATTR_USE_MONITOR_CAMERA = 262144; + private const int ATTR_FORCED_USE_MONITOR_CAMERA = 524288; } diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineVolumeLightData.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineVolumeLightData.cs index 49dc926..67155eb 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineVolumeLightData.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineDataList/LiveTimelineVolumeLightData.cs @@ -7,13 +7,17 @@ namespace Gallop.Live.Cutt [System.Serializable] public class LiveTimelineKeyVolumeLightData : LiveTimelineKeyWithInterpolate { - public Vector3 sunPosition; - public Color color1; - public float power; - public float komorebi; - public float blurRadius; - public bool enable; - public bool isEnabledBorderClear; + public Vector3 sunPosition; // 0x30 + public Color color1; // 0x3C + public float power; // 0x4C + public float komorebi; // 0x50 + public float blurRadius; // 0x54 + public float ColorRate; // 0x58 + public float ScreenColorPower; // 0x5C + public float EffectColorPower; // 0x60 + public bool enable; // 0x64 + public bool isEnabledBorderClear; // 0x65 + private const int ATTR_BLUR_ALPHA = 65536; } [System.Serializable] diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs index 6c43a74..d01f7d0 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs @@ -1,3 +1,4 @@ +using Cutt; using System.Collections.Generic; using UnityEngine; @@ -237,8 +238,8 @@ namespace Gallop.Live.Cutt public float TotalTimeLength; public bool Lyrics; public LiveTimelineDefine.SheetIndex SheetType; - public LiveTimelineKeyTimescaleDataList timescaleKeys; - public LiveTimelineKeyCameraPositionDataList cameraPosKeys; + [SerializeField] public LiveTimelineKeyTimescaleDataList timescaleKeys; + [SerializeField] public LiveTimelineKeyCameraPositionDataList cameraPosKeys; //[SerializeField]用于该类在别的脚本里定义的时候 [SerializeField] public LiveTimelineKeyCameraLookAtDataList cameraLookAtKeys; @@ -312,14 +313,12 @@ namespace Gallop.Live.Cutt [SerializeField] public List effectList; [SerializeField] public LiveTimelineKeyTiltShiftDataList tiltShiftKeys; - - [SerializeField] public List a2uConfigList; - [SerializeField] public List a2uList; - - [SerializeField] public LiveTimelineKeyTitleDataList titleKeys; + [SerializeField] public LiveTimelineKeyFlashPlayerDataList flashPlayerKeys; + [SerializeField] public LiveTimelineKeyTitleDataList titleKeys; [SerializeField] public List spotlight3dList; - [SerializeField] public List nodeScaleList; + [SerializeField] public List CharaNodeDataList; + [SerializeField] public List nodeScaleList; [SerializeField] public LiveTimelineKeyCharaFootLightDataList charaFootLightKeys; @@ -349,7 +348,7 @@ namespace Gallop.Live.Cutt - /* + /* //终于可以调用AB包了,虽然后面发现没什么用...说不定什么时候能用到 private void Start() { @@ -370,6 +369,6 @@ namespace Gallop.Live.Cutt } } */ - } + } } diff --git a/Assets/Scripts/umamusume/Gallop/Live/Director.cs b/Assets/Scripts/umamusume/Gallop/Live/Director.cs new file mode 100644 index 0000000..8feef64 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Director.cs @@ -0,0 +1,322 @@ +using System; +using Gallop.ImageEffect; +using System.Collections; +using System.Collections.Generic; +using System.Runtime.CompilerServices; +using UnityEngine; +using Gallop.Live.Cutt; +using static Director; + +namespace Gallop.Live +{ + public class Director : MonoBehaviour + { + private class OutLineOffLengthItem + { + public Camera _camera; + public float _outlineOffLength; + } + + private enum LoadAssetTask + { + Start = 0, + TimelineEnd = 1, + CharacterEnd = 2, + StageEnd = 3, + Finish = 4 + } + + public enum QualityLevel + { + Auto = 0, + Lv1_Outline75 = 1, + Lv2_Outline = 2, + Lv3_OutlineBloom50 = 3, + Lv4_OutlineBloom75 = 4, + Lv5_OutlineBloom100 = 5, + Lv6_OutlineDof75 = 6, + Lv7_OutlineDof1280 = 7, + Lv8_OutlineDof = 8, + Max = 8 + } + + public enum DisplayMode + { + None = 0, + Landscape = 1, + Portrait = 2 + } + + private enum State + { + None = 0, + LiveInit_Start = 1, + LiveInit = 2, + LiveStart_Start = 3, + LiveStart = 4, + LivePlay_Start = 5, + LivePlay = 6 + } + + private enum CameraIndex + { + Motion = 0, + Timeline1 = 1, + Timeline2 = 2, + Timeline3 = 3 + } + + public enum IndirectLightShaftsTextureType + { + ShaftA = 0, + ShaftB = 1, + Mask = 2, + ShaftC = 3 + } + + public class SpotLightEffectMaterialData + { + public Material AdditionMaterial; + public Material MultiplyMaterial; + } + + public class Live3DSettings + { + public int MusicId { get; set; } + public string CuttPath { get; set; } + public string BgPath { get; set; } + public float DelayTime { get; set; } + public string CameraPath { get; set; } + //public Director.Live3DSettings.UvMovieData[] UvMovieDataArray { get; set; } + public string[] MirrorScanLightTexturePathArray { get; set; } + public int CharacterDataCount { get; set; } + //public CharacterObject.CharacterData[] CharacterDataArray { get; } + public bool IsEnabled { get; set; } + public bool IsOP { get; set; } + public bool IsED { get; set; } + public bool IsSkipSkit { get; set; } + public bool IsVoiceOP { get; set; } + public bool IsVoiceED { get; set; } + public bool IsLyricsOP { get; set; } + public bool IsLyricsED { get; set; } + public bool IsCyalumeOP { get; set; } + public bool IsCyalumeED { get; set; } + //public Director.Live3DSettings.AudienceAnimationData[] AudienceAnimationDataArray { get; set; } + public Dictionary ProjectorTextureDictionary { get; set; } + public int ExtraResourceId { get; set; } + public int MusicResourceId { get; set; } + } + + public class LiveLoadSettings + { + public class CharacterInfo + { + public int CharaId { get; set; } + public int MobId { get; set; } + public int[] DressIdArray { get; set; } + public int[] DressColorIdArray { get; set; } + public int VocalCharaId { get; set; } + public bool IsMob { get; } + } + + public class RaceInfo + { + public int RaceInstanceId { get; set; } + public RaceDefine.Weather Weather { get; set; } + public string[] CharacterNameArray { get; set; } + public string[] TrainerNameArray { get; set; } + public string[] CharacterNameArrayForChampionsText { get; set; } + public string[] TrainerNameArrayForChampionsText { get; set; } + public RaceDefine.RaceType RaceType { get; set; } + public int DateYear { get; set; } + public int ChampionsMeetingResourceId { get; set; } + public Texture GoalCaptureTexture { get; set; } + } + + public int MusicId { get; set; } + public List CharacterInfoList { get; } + public Director.LiveLoadSettings.RaceInfo raceInfo { get; } + public bool IsSkipSkit { get; set; } + public Dictionary StageObjectSelectTargetDictionary { get; set; } + } + + + + private const float LiveStartFadeInTime = 1; + private const string TransparentCameraName = "TransparentCamera"; + private const int TransparentCameraDepth = 15; + private const string MonitorCameraPrefabPath = "Prefabs/Live/MonitorCamera"; + private const float LiveTotalTimeInit = 180; + private const float LiveTotalTimeMargin = 0; + private const float MaxOutlineOffLength = 99999; + private const int FINALIZE_CAMERA_DEPTH = 19; + private static Director _instance; + [SerializeField] + private Director.State _state; + private bool _isDestroyed; + private LiveTimelineControl _liveTimelineControl; + private bool _isFinished; + private readonly RandomTable _randomTable; + private RandomRatioTable _blinkLightRandomRatioTable; + private float _sceneFrameRate; + [SerializeField] + private float _liveCurrentTime; + private bool _isRequestFadeOut; + private bool _isLiveSetup; + [SerializeField] + private bool _isEnableBloom; + private bool _isBloom; + private bool _isDof; + private StageController _stageController; + private bool _isEnabledStageController; + public RenderTexture[] MonitorTextureArray; + [SerializeField] + private Transform _globalLightTransform; + [SerializeField] + private GameObject[] _cameraNodes; + private Camera[] _cameraObjects; + private CameraEventCallback[] _cameraEventCallbackArray; + private GameObject _transparentCameraObject; + private Camera _transparentCamera; + private Transform _transparentCameraTransform; + private MultiCameraFinalComposite[] _multiCameraFinalCompositeArray; + private MultiCameraComposite[] _multiCameraCompositionArray; + private MultiCamera _multiCamera; + [SerializeField] + private CameraLookAt _cameraLookAt; + [SerializeField] + private Animator _cameraAnimator; + private RuntimeAnimatorController _cameraRuntimeAnimator; + private GameObject[] _monitorCameraObjectArray; + private MonitorCamera[] _monitorCameraArray; + [SerializeField] + private HandShakeCamera _handShakeCamera; + private int _activeCameraIndex; + private readonly int kMotionCameraIndex; + private readonly int[] kTimelineCameraIndices; + //private GallopFrameBuffer _frameBuffer; + //private LowResolutionCameraFrameBuffer[] _lowResolutionCameraArray; + private Camera _mainCameraObject; + private Transform _mainCameraTransform; + public Action OnChangeOriantationLandscapeCallback; + public Action OnChangeOriantationPortraitCallback; + private readonly List _characterObjectList; + private List _listShadowEffectInfo; + private List _listSpotLightEffectInfo; + private ModelController.ModelDepthInfo[] _depthOrderInfoArray; + private readonly List _modelControllerList; + private bool _isUpdateModelRenderQueue; + //private PropsManager _propsManager; + private SongPart _songPart; + //public LiveChampionsTextController ChampionsTextController; + public LiveTitleController TitleController; + private LiveFadeController _fadeController; + //private readonly List _imageEffectLive3dList; + //private IndirectLightShaftsParam[] _indirectLightShaftsParamArray; + private Texture2D[] _indirectLightShaftsTexture; + private ColorCorrectionParam _colorCorrectionParameter; + [SerializeField] + private float _outlineFovMin; + [SerializeField] + private float _outlineFovMinOffLength; + [SerializeField] + private float _outlineFovLessOffLength; + [SerializeField] + private float _outlineFovMax; + [SerializeField] + private float _outlineFovMaxOffLength; + [SerializeField] + private float _outlineFovGreaterOffLength; + private List _outlineOffLengthItems; + private const int VariationCallOn = 1; + private const int VariationCallOff = 2; + private const int CharaSongVariation = 1; + private const int MOB_DEFAULT_DRESS_ID = 7; + private const int PROPS_BLINKLIGHT_RENDERQUEUE_START = 100; + private const string LIGHT_UVMOVIE_FILE_NAME = "gal_UVmovie_{0}_Light"; + private const string LIVE_IMAGE_SUFFIX_CHAMPIONS_LOGO = "champions_logo"; + private const string LIVE_IMAGE_SUFFIX_CHAMPIONS_JACKET = "champions_jacket"; + private Director.LoadAssetTask _loadAssetTask; + private bool _isClothInitialized; + private int _charaClothResetTimer; + private GameObject _initializeCamera; + private Transform _initializeCameraTransform; + private float _clothInitTimer; + //private List _propsDataList; + private int _usualMultiTrainedCharaId; + private bool _isInitializedMultiCamera; + private bool _isInitialized; + private static GameObject _cuttPrefab; + private static bool _usingAssetBundleCuttPrefab; + private static TextAsset _cyalumeChoreographyCsv; + private static TextAsset _songPartCsv; + private static TextAsset[] _uvMovieJsonArray; + private bool _enableTimelineGlobalRimParam; + private Vector3 _tempRateVector; + private Vector3 _tempAttachRateVector; + + public static Director Instance { get; } + public static bool HasInstance { get; } + public LiveTimelineControl LiveTimelineControl { get; } + public Director.DisplayMode displayMode { get; set; } + public bool IsStarted { get; } + public bool IsFinished { get; set; } + public static bool IsLiveCall { get; set; } + public static bool IsDisplayCyalume { get; set; } + public static bool IsDisplayAudience { get; set; } + public RandomTable randomTable { get; } + public RandomRatioTable BlinkLightRandomRatioTable { get; } + public float SceneFrameRate { get; } + public LiveTimeController LiveTimeController { get; } + public float LiveCurrentTime { get; } + public float LiveTotalTime { get; } + public bool isRequestFadeOut { get; } + public bool DoStartLive { get; set; } + public int screenOriginWidth { get; } + public int screenOriginHeight { get; } + public StageController StageController { get; } + public bool IsEnabledStageController { get; } + public Transform GlobalLightTransform { get; set; } + public Camera[] CameraObjects { get; } + public Animator CameraAnimator { get; } + public HandShakeCamera HandShakeCamera { get; } + //public GallopFrameBuffer FrameBuffer { get; } + public Camera MainCameraObject { get; } + public Transform MainCameraTransform { get; } + public List CharacterObjectList { get; } + public List listShadowEffectInfo { get; } + public List listSpotLightEffectInfo { get; } + public List SpotLightEffectMaterialDataList { get; set; } + public PropsManager PropsManager { get; } + public SongPart SongPart { get; } + public LiveFadeController FadeController { get; } + public LiveTimelineDefine.SheetIndex SheetType { get; } + public bool IsTimelineControlled { get; } + public static Director.LiveLoadSettings LoadSettings { get; } + public static Director.Live3DSettings LiveSettings { get; } + public static List SongCueSheetPathList { get; set; } + public int UsualMultiTrainedCharaId { get; set; } + public bool IsInitialized { get; } + public static RegisterInfo[] IndirectLightShaftsTextureRegisterInfoArray { get; set; } + public static RegisterInfo[] CharacterRegisterInfoArray { get; set; } + public static RegisterInfo[] CommonRegisterInfoArray { get; set; } + public static RegisterInfo[] EffectRegisterInfoArray { get; set; } + public static Dictionary> FlashSeCueNameDict { get; set; } + + //Testing + public LiveEntry live; + private const string CUTT_PATH = "cutt/cutt_son{0}/cutt_son{0}"; + + private UmaViewerBuilder Builder => UmaViewerBuilder.Instance; + + private void Awake() + { + if (live != null) + { + Debug.Log(string.Format(CUTT_PATH, live.MusicId)); + Builder.LoadAssetPath(string.Format(CUTT_PATH, live.MusicId), this.gameObject.transform); + } + } + } + +} \ No newline at end of file diff --git a/Assets/Scripts/umamusume/Gallop/Live/Director.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/Director.cs.meta new file mode 100644 index 0000000..8824b1b --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Director.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd41a591fd88f8f4a95b36ecbf27a8d1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs b/Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs new file mode 100644 index 0000000..5409e8a --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs @@ -0,0 +1,30 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class HandShakeCamera + { + public struct Work + { + public float Power; // 0x0 + public float Frequency; // 0x4 + public Vector3 CameraRightVector; // 0x8 + public float DeltaTime; // 0x14 + private float _currentAngle; // 0x18 + private Vector2 _screenPosition; // 0x1C + private Vector2 _nextTarget; // 0x24 + private float _duration; // 0x2C + } + + private const float TIME_RANGE = 0.1f; + private const float DELTA_TIME_FACTOR = 30; + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private float _power; // 0x10 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private float _frequency; // 0x14 + private Vector3 _position; // 0x18 + private HandShakeCamera.Work _work; // 0x24 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs.meta new file mode 100644 index 0000000..e341bef --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/HandShakeCamera.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c2493e661265d18448ffc3513442d6f4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs b/Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs new file mode 100644 index 0000000..384d8cf --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class LiveFadeController + { + //private RawImageCommon _landscapeImage; // 0x10 + //private RawImageCommon _portraitImage; // 0x18 + private float _startCurrentTime; // 0x20 + private float _duration; // 0x24 + private Color _color; // 0x28 + private Color _startColor; // 0x38 + private Color _targetColor; // 0x48 + private bool _isInitialized; // 0x58 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs.meta new file mode 100644 index 0000000..15dcc16 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/LiveFadeController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e55070e17f8671347b7a8cf06ab00008 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs b/Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs new file mode 100644 index 0000000..b31a62e --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class LiveTimeController + { + private readonly float SmoothingTargetDeltaTime; // 0x10 + private readonly float SmoothingDeltaTimeThreshold; // 0x14 + private readonly float SmoothingOvertimeClamp; // 0x18 + private bool _isEnabledSmooth; // 0x20 + private float _smoothingWorkTime; // 0x28 + private float _lastMusicTimeWithoutDelay; // 0x2C + private float _currentTime; // 0x30 + private float _prevTime; // 0x34 + private float _deltaTime; // 0x38 + private bool _doCalcElapsedTime; // 0x3C + private float _elapsedTime; // 0x40 + private bool _isPause; // 0x44 + + public float MusicTime { get; set; } + public float SmoothMusicTime { get; set; } + public float CurrentTime { get; set; } + public float DeltaTime { get; } + public bool IsCalcElapsedTime { get; } + public bool IsPause { get; } + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs.meta new file mode 100644 index 0000000..f97d44f --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/LiveTimeController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fbc7c70b27fb80842af2c4f4398705b4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs b/Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs new file mode 100644 index 0000000..debc64e --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class LiveTitleController : MonoBehaviour + { + private const int MAX_AUTHOR_TEXT_FONT_SIZE = 32; + //[SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + //private TextCommon _titleText; // 0x18 + //[SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + //private TextCommon _authorText; // 0x20 + //[SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + //private ImageCommon _titleImage; // 0x28 + //[SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + //private UIGradation _titleGradation; // 0x30 + //[SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + //private FadeGui _fadeGui; // 0x38 + private bool _isInitialized; // 0x40 + private bool _isDisappear; // 0x41 + private bool _isScaleSettingsVertical; // 0x42 + private const float HORIZONTAL_SCALE = 1; + private const float VERTICAL_SCALE = 0.8f; + private Transform _transform; // 0x48 + private Transform _landscapeTransform; // 0x50 + private Transform _portraitTransform; // 0x58 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs.meta new file mode 100644 index 0000000..ca8f775 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/LiveTitleController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b17d6fb8e8733854b993ee5af061bf50 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs b/Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs new file mode 100644 index 0000000..07f041a --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs @@ -0,0 +1,92 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class Master3dLive + { + public class LiveSettings + { + public enum DataType + { + Cutt = 0, + Bg = 1, + Delay = 2, + Camera = 3, + UVMovie = 4, + MirrorScanLightMaterial = 5, + OP = 6, + ED = 7, + OptionOP = 8, + OptionED = 9, + AudienceAnimation = 10, + ProjectorTexture = 11, + DressChangePosition = 12, + CharacterExpansion = 13, + ExtraResource = 14, + MusicResource = 15 + } + + private const int COLUM_MIN = 2; + public const int PARAM_MAX = 20; + + public int Id { get; set; } + public int TypeValue { get; set; } + public Master3dLive.LiveSettings.DataType Type { get; set; } + public string[] ParamStringArray { get; set; } + public int[] ParamValueArray { get; set; } + } + + public class Live3dData + { + public enum ExtraResource + { + None = 0, + ChampionsMeeting = 1 + } + + public class UvMovieData + { + public enum LoadCondition + { + Never = -1, + Always = 0, + CharaDress = 1 + } + + public enum PlayCondition + { + PlayNoLight = 0, + PlayLight = 1 + } + + public string ResourceName { get; set; } + public int LoadConditionValue { get; set; } + public int PlayConditionValue { get; set; } + } + + public int MusicId { get; set; } + public int MusicResourceId { get; set; } + public string CuttName { get; set; } + public int BgId { get; set; } + public int BgVar { get; set; } + public float DelayTime { get; set; } + public string CameraName { get; set; } + public Master3dLive.Live3dData.UvMovieData[] UvMovieDataArray { get; set; } + public int[] MirrorScanLightIdArray { get; set; } + public string[] MirrorScanLightNameArray { get; set; } + public bool IsOP { get; set; } + public bool IsED { get; set; } + public bool IsLyricsOP { get; set; } + public bool IsLyricsED { get; set; } + public bool IsCyalumeOP { get; set; } + public bool IsCyalumeED { get; set; } + public string[] AudienceAnimationArray { get; set; } + public Dictionary ProjectorTextureDictionary { get; set; } + public int ExtraResourceId { get; set; } + } + + public Master3dLive.Live3dData LiveData; + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs.meta new file mode 100644 index 0000000..5d4d85e --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/Master3dLive.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 40b8dc33172b4844c840874cf782c340 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs b/Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs new file mode 100644 index 0000000..2a00091 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs @@ -0,0 +1,22 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class MonitorCamera : MonoBehaviour + { + public const int DEFAULT_DEPTH = 16; + public const float TEXTURE_WIDTH_RATE_MIN = 0.25f; + public const float TEXTURE_WIDTH_RATE_MAX = 1; + public const float TEXTURE_WIDTH_RATE_DEF = 0.25f; + private Camera _targetCamera; // 0x18 + private bool _isEnabledTargetTexture; // 0x20 + private RenderTexture _targetTexture; // 0x28 + private RenderTexture _monitorTexture; // 0x30 + + public Camera TargetCamera { get; } + public RenderTexture MonitorTexture { get; } + public static float TextureWidthRate { get; set; } + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs.meta new file mode 100644 index 0000000..72aea97 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/MonitorCamera.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 728fa655c96f4b948a241fb73458c8d7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs b/Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs new file mode 100644 index 0000000..4898ac9 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs @@ -0,0 +1,14 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class MultiCamera : MonoBehaviour + { + private RenderTexture _framebufferCompositeTexture; // 0x18 + private RenderTexture _compositeTexture; // 0x20 + [SerializeField] // RVA: 0xEBE0 Offset: 0xEBE0 VA: 0x7FF85CCBEBE0 + private Material[] _compositeMaterial; // 0x28 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs.meta new file mode 100644 index 0000000..a0bcf7f --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/MultiCamera.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 391ac73b1e1e5694983213cd6918de9f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs b/Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs new file mode 100644 index 0000000..204ce77 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs @@ -0,0 +1,38 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class MultiCameraFinalComposite : MonoBehaviour + { + public enum FadeType + { + Normal = 0, + Single = 1, + CaptureFrame = 2 + } + + private enum MaterialType + { + None = 0, + Normal = 1, + Single = 2 + } + + [SerializeField] + private RenderTexture _finalCompositeTexture; + [SerializeField] + private RenderTexture _compositeTexture; + [SerializeField] + private Material[] _material; + private Material _clearMaterial; + [SerializeField] + private float _fadeValue; + [SerializeField] + private RenderTexture _monitorTexture; + private MultiCameraFinalComposite.FadeType _fadeType; + //private GallopImageEffect _imageEffect; + } +} + diff --git a/Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs.meta new file mode 100644 index 0000000..8bba923 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/MultiCameraFinalComposite.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ba97cdfd924bbea4eb6e07743cdbc23c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs b/Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs new file mode 100644 index 0000000..0399e61 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs @@ -0,0 +1,15 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class RandomRatioTable + { + private RandomNumber _randomNumber; // 0x10 + private int _randomSeed; // 0x18 + private float[,] _randomValueArray; // 0x20 + private int _majorLength; // 0x28 + private int _minorLength; // 0x2C + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs.meta new file mode 100644 index 0000000..42abdd0 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/RandomRatioTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5d2aef65c1a5755449da20c62b2aac94 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs b/Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs new file mode 100644 index 0000000..81e0442 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class RandomTable + { + public const int DEFAULT_BUCKET_COUNT = 16; + public const int DEFAULT_STACK_SIZE = 256; + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs.meta new file mode 100644 index 0000000..cca2838 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/RandomTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6173f393a36d18b4c91e94c7779e0d3b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs b/Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs new file mode 100644 index 0000000..60807a2 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop.Live +{ + public class RandomTable + { + private const int MAX_COUNT = 16; + private const int OFFSET_RANDOM_BUCKET = 1; + private bool _bInitialized; + private Func _fnGenerator; + private int _bucketCount; + private int _stackSize; + private T[,] _arrRandomValue; + private int _curStackPtr; + + public bool isInitialized { get; } + public int bucketCount { get; } + public int stackSize { get; } + public T Item { get; } + } +} diff --git a/Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs.meta b/Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs.meta new file mode 100644 index 0000000..02db3c2 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/Live/RandomTable_T.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5bfbb76a97b0185439ef1d26d8c18c23 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/LiveDefine.cs b/Assets/Scripts/umamusume/Gallop/LiveDefine.cs new file mode 100644 index 0000000..8c2c07a --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/LiveDefine.cs @@ -0,0 +1,19 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop +{ + public static class LiveDefine + { + public const int LIVE_CHARACTER_MAX = 20; + public const int LIVE_THEATER_CHARACTER_MAX = 18; + public const int BACK_DANCER_RANK = 4; + + public enum LightBlendMode + { + Addition = 0, + Multiply = 1 + } + } +} diff --git a/Assets/Scripts/umamusume/Gallop/LiveDefine.cs.meta b/Assets/Scripts/umamusume/Gallop/LiveDefine.cs.meta new file mode 100644 index 0000000..6d0033a --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/LiveDefine.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bce1fb00fe9e7cd429eda19bdb470e4b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/ModelController.cs b/Assets/Scripts/umamusume/Gallop/ModelController.cs index 9355217..8236aa6 100644 --- a/Assets/Scripts/umamusume/Gallop/ModelController.cs +++ b/Assets/Scripts/umamusume/Gallop/ModelController.cs @@ -19,5 +19,11 @@ namespace Gallop Multiply = 1, Max = 2 } + + public struct ModelDepthInfo + { + public int index; // 0x0 + public float depthOrder; // 0x4 + } } } diff --git a/Assets/Scripts/umamusume/Gallop/RaceDefine.cs b/Assets/Scripts/umamusume/Gallop/RaceDefine.cs new file mode 100644 index 0000000..dbcb563 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/RaceDefine.cs @@ -0,0 +1,507 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop +{ + public static class RaceDefine + { + public enum PopularityMark + { + Left = 0, + Center = 1, + Right = 2 + } + + public enum RaceType + { + None = 0, + PvP = 1, + Tutorial = 2, + Story = 3, + StoryCondition = 4, + Champions = 5, + Single = 6, + SingleModeScenarioTeamRace = 7, + RoomMatch = 8, + Practice = 9, + Daily = 10, + TeamBuilding = 11, + Legend = 12, + ChallengeMatch = 13, + TeamStadium = 14, + Heroes = 16 + } + + public enum RaceGroup + { + None = 0, + Common = 1, + Daily = 2, + TrainingPractice = 3, + StoryCondition = 4, + TeamBuilding = 5, + Practice = 6, + Single = 7, + Legend = 8, + TeamStadium = 9, + SingleModeScenarioTeamRace = 10, + Champions = 11, + RoomMatch = 12, + ChallengeMatch = 13, + Heroes = 14, + CustomG1 = 61 + } + + public enum CourseDistanceType + { + Short = 1, + Mile = 2, + Middle = 3, + Long = 4 + } + + public enum TeamRaceNumberType + { + Short = 1, + Mile = 2, + Middle = 3, + Long = 4, + Dirt = 5 + } + + public enum RaceState + { + Null = -1, + Init = 0, + MemberList = 1, + GateIn = 2, + WaitStartDash = 3, + Race = 4, + OverRun = 5, + OverRunResult = 6, + WinningCircleInit = 7, + WinningCircle = 8, + End = 9 + } + + public enum RaceNpcType + { + Normal = 0, + Boss = 3, + User = 11, + UserOther = 20, + Ghost = 21, + Follow = 22 + } + + public enum Grade + { + None = 0, + Grade1 = 100, + Grade2 = 200, + Grade3 = 300, + Grade4 = 400, + Grade5 = 500, + Grade6 = 600, + Grade7 = 700, + Grade8 = 800, + Grade9 = 900, + SpecialGrade = 1000, + G1 = 100, + G2 = 200, + G3 = 300, + Open = 400, + U_1600 = 500, + U_1000 = 600, + PreOpen = 700, + NoWin = 800, + NewHorses = 900, + Legend = 100, + Orion = 200, + Cassiopeia = 300, + Aries = 400, + Varugo = 500, + Consolation = 800, + Beginner = 900, + GUR = 1000, + Min = 900 + } + + public enum Difficulty + { + Easy = 1, + Normal = 2, + Hard = 3, + VeryHard = 4, + Extreme = 5 + } + + public enum StraightFrontType + { + Null = 0, + Front = 1, + AcrossFront = 2 + } + + public enum GroundType + { + Turf = 1, + Dirt = 2, + Max = 2 + } + + public enum GroundCondition + { + Good = 1, + Soft = 2, + Hard = 3, + Bad = 4 + } + + public enum Weather + { + None = 0, + Sunny = 1, + Cloudy = 2, + Rainy = 3, + Snow = 4, + Max = 5, + Min = 0 + } + + public enum Time + { + None = 0, + Morning = 1, + Daytime = 2, + Evening = 3, + Night = 4, + Max = 5, + Min = 0 + } + + public enum CourseAround + { + None = 1, + Inner = 2, + Outer = 3, + OuterToInner = 4 + } + + public enum Rotation + { + Right = 1, + Left = 2, + StraightRight = 3, + StraightLeft = 4 + } + + public enum Audience + { + Few = 1, + Normal = 2, + SoldOut = 3 + } + + public enum Category + { + Course = 0, + Gate = 1, + TurfGoal = 2, + DirtGoal = 3, + TurfGoalFlower = 4, + DirtGoalFlower = 5, + Tree = 6, + Audience = 7, + Flag = 8, + Sky = 9, + Car = 10 + } + + public enum GoalGateType + { + Common = 0 + } + + public enum RunningStyle + { + None = 0, + Nige = 1, + Senko = 2, + Sashi = 3, + Oikomi = 4 + } + + public enum RunningStyleEx + { + None = 0, + Oonige = 1 + } + + public enum ProperExpCategory + { + None = 0, + Ground = 1, + RunningStyle = 2, + Distance = 3 + } + + public enum ProperGrade + { + Null = 0, + G = 1, + F = 2, + E = 3, + D = 4, + C = 5, + B = 6, + A = 7, + S = 8 + } + + public enum ProperType + { + Distance = 1, + Ground = 2, + RunningStyle = 3 + } + + public enum DefeatType + { + Null = 0, + Win = 1, + Lose = 2, + RunningStyleMany = 3, + Temptaion = 4, + GutsOrder = 5, + Stamina = 6, + LastSpurtFalse = 7, + LastSpurtTargetSpeedDec = 8, + PassiveSkillNum = 9, + BlockFrontTime = 10, + Speed = 11, + ProperDistance = 12, + ProperGround = 13, + Motivation = 14 + } + + public enum HorseLength + { + Nose = 0, + Head = 1, + Neck = 2, + Half = 3, + ThreeQuarters = 4, + One = 5, + OneAndOneQuarters = 6, + OneAndHalf = 7, + OneAndThreeQuarters = 8, + Two = 9, + TwoAndHalf = 10, + Three = 11, + ThreeAndHalf = 12, + Four = 13, + Five = 14, + Six = 15, + Seven = 16, + Eight = 17, + Nine = 18, + Ten = 19, + OverTen = 20 + } + + public enum CoursePathType + { + NormalRace = 0, + StoryRace = 1 + } + + public enum BGMControlMode + { + Null = 0, + Normal = 1 + } + + public enum RaceBGMConditionType + { + Null = -1, + Heroes1stStage = 1, + HeroesFinalStage = 10 + } + + public enum SlopeType + { + Null = 0, + Up = 1, + Down = 2 + } + + public enum QualityType + { + Quality3D_Light = 0, + Quality3D = 1, + Quality3D_Rich = 2, + Quality_Unknown = -1 + } + + public enum CutInPlayMode + { + LongOnceADay = 0, + Long = 1, + Short = 2 + } + + public enum Motivation + { + None = 0, + Min = 1, + Low = 2, + Middle = 3, + High = 4, + Max = 5 + } + + public enum UnlockFlag + { + Status = 1, + ConservePower = 2 + } + + public enum PositionKeepMode + { + Null = 0, + SpeedUp = 1, + Overtake = 2, + PaseUp = 3, + PaseDown = 4, + PaseUpEx = 5 + } + + public enum EventCameraCategory + { + Jikkyo = 1, + SkillCutIn = 2, + Temp01 = 3, + Goal = 4 + } + + public enum HorseRelativePos + { + Null = 0, + Left = 1, + Right = 2 + } + + public enum TurfVisionType + { + URA = 1, + NAU = 2, + Stand = 3 + } + + public enum ResultBoardConditionType + { + Turf_None = 1, + Turf_Dirt = 2, + Dirt_None = 3, + Dirt_Turf = 4 + } + + public enum EventType + { + None = 0, + LegendRace = 1 + } + + public enum RaceTrackFootSmokeColorType + { + LightMap = 1, + LightProbeOnlyNight = 2 + } + + public enum SEPriority + { + ResidentCrowd = 1, + GroupFoot = 2, + HighFoot = 3, + CourseEnvironment = 4, + EventCrowd = 5, + StoryRaceVoice = 6, + CourseGateOpen = 7, + StoryRaceTimeline = 8, + Score = 9, + SkillCutIn = 10, + MessagePlate = 11, + Skill = 13, + Foot = 15, + Cloth = 20 + } + + public enum CharaColorType + { + Null = 0, + Black = 1 + } + + public enum MainStoryShowSkillType + { + Null = 0, + Show = 1, + ShowGimmickMatch = 2, + ShowGimmickUnmatch = 3 + } + + public enum LastSpurtEvaluateValue + { + False = 0, + True = 1, + TrueExceedNeedMaxHp = 2, + Max = 2 + } + + public const int FINAL_CORNER_END_ORDER_NULL = -1; + public const int HORSE_INDEX_NULL = -1; + public const int TEAM_STADIUM_MEMBER_MAX = 3; + public const int POPULARITY_ICON_MAX = 5; + public const int SCREEN_VERTICAL = 0; + public const int SCREEN_LANDSCAPE = 1; + public const string POPULAR_ICON_NAME = "utx_ico_racepopularity_{0:D2}"; + public const int RANK_1ST = 1; + public const int RANK_2ND = 2; + public const int RANK_3RD = 3; + public const int RANK_4TH = 4; + public const int RANK_5TH = 5; + public const int RANK_6TH = 6; + public const int COURSE_SECTION_NUM = 24; + public const float HORSE_LENGTH_DISTANCE_ONE = 2.5f; + public const float HorseLength_One = 1; + public const float HorseLength_Three = 3; + public const float HorseDistance2LaneCoef = 18; + public const float HorseLane2DistanceCoef = 0.055555556f; + public const float HorseLane_Quarters = 0.013888889f; + public const float HorseLane_Harf = 0.027777778f; + public const float HorseLane_ThreeQuarters = 0.041666668f; + public const float HorseLane_One = 0.055555556f; + public const float HorseLane_OneAndOneQuarters = 0.06944445f; + public const float HorseLane_OneAndHarf = 0.083333336f; + public const float HorseLane_OneAndThreeQuarters = 0.097222224f; + public const float HorseLane_Two = 0.11111111f; + public const float HorseLane_Three = 0.16666667f; + public const float HorseLane_Four = 0.22222222f; + public const float HorseLane_Five = 0.2777778f; + public const float HorseLane_Six = 0.33333334f; + public const float HorseLane_Seven = 0.3888889f; + public const float HorseLane_Eight = 0.44444445f; + public const float HorseLane_Nine = 0.5f; + public const float HorseLane_Ten = 0.5555556f; + public const int RACE_HORSE_MAX = 18; + public const float COURSE_SCALE = 0.625f; + public const float COURSE_WIDTH = 11.25f; + public const float ONE_FURONG_DISTANCE = 200; + public const float ONE_FURONG_DISTANCE_INV = 0.005f; + public const int POST_NUMBER_MIN = 1; + public const int POST_NUMBER_MAX = 8; + public const int COMPETE_GROUP_NULL = -1; + } +} diff --git a/Assets/Scripts/umamusume/Gallop/RaceDefine.cs.meta b/Assets/Scripts/umamusume/Gallop/RaceDefine.cs.meta new file mode 100644 index 0000000..a76092f --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/RaceDefine.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc1d44fb449948548b26e82d2f6f5a6e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/RandomNumber.cs b/Assets/Scripts/umamusume/Gallop/RandomNumber.cs new file mode 100644 index 0000000..c85614c --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/RandomNumber.cs @@ -0,0 +1,11 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop +{ + public class RandomNumber + { + + } +} diff --git a/Assets/Scripts/umamusume/Gallop/RandomNumber.cs.meta b/Assets/Scripts/umamusume/Gallop/RandomNumber.cs.meta new file mode 100644 index 0000000..32aa1eb --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/RandomNumber.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ef25312972ef6034cb969aa68f88e86e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/RegisterInfo.cs b/Assets/Scripts/umamusume/Gallop/RegisterInfo.cs new file mode 100644 index 0000000..e9b8209 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/RegisterInfo.cs @@ -0,0 +1,13 @@ +using System.Collections; +using System.Collections.Generic; +using System.Resources; +using UnityEngine; + +namespace Gallop +{ + public class RegisterInfo + { + private string _filePath; // 0x10 + //private ResourceManager.ResourceHash _hash; // 0x18 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/RegisterInfo.cs.meta b/Assets/Scripts/umamusume/Gallop/RegisterInfo.cs.meta new file mode 100644 index 0000000..846432e --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/RegisterInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a9be58d9187fa74aa1f3ea4b00d23fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/umamusume/Gallop/SongPart.cs b/Assets/Scripts/umamusume/Gallop/SongPart.cs new file mode 100644 index 0000000..63885db --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/SongPart.cs @@ -0,0 +1,102 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Gallop +{ + public interface ISongPartAccesor + { + + } + + public class SongPart : ISongPartAccesor + { + public enum PartPosition + { + Center = 0, + Left = 1, + Right = 2, + Left2 = 3, + Right2 = 4, + Left3 = 5, + Right3 = 6, + Max = 7, + LLeft = 3, + RRight = 4 + } + + public enum PartType + { + Off = 0, + Label_0 = 1, + Label_1 = 2, + Label_2 = 3, + Label_3 = 4, + Label_4 = 5, + Label_5 = 6, + Max = 7 + } + + private enum CsvLabel + { + Time = 0, + Sing_LLeft = 1, + Sing_Left = 2, + Sing_Center = 3, + Sing_Right = 4, + Sing_RRight = 5, + Volume_LLeft = 6, + Volume_Left = 7, + Volume_Center = 8, + Volume_Right = 9, + Volume_RRight = 10, + Pan_LLeft = 11, + Pan_Left = 12, + Pan_Center = 13, + Pan_Right = 14, + Pan_RRight = 15, + Max = 16 + } + + private enum CsvLabel7 + { + Time = 0, + Sing_Left3 = 1, + Sing_Left2 = 2, + Sing_Left = 3, + Sing_Center = 4, + Sing_Right = 5, + Sing_Right2 = 6, + Sing_Right3 = 7, + Volume_Left3 = 8, + Volume_Left2 = 9, + Volume_Left = 10, + Volume_Center = 11, + Volume_Right = 12, + Volume_Right2 = 13, + Volume_Right3 = 14, + Pan_Left3 = 15, + Pan_Left2 = 16, + Pan_Left = 17, + Pan_Center = 18, + Pan_Right = 19, + Pan_Right2 = 20, + Pan_Right3 = 21, + VolumeRate = 22, + Max = 23 + } + + public class SongPartData + { + public long Time { get; set; } + public SongPart.PartType[] PartArray { get; set; } + public int[] PositionArray { get; set; } + public int[] OrderArray { get; set; } + public float[] PartVolumeArray { get; set; } + public float[] PartPanArray { get; set; } + public float PartVolumeRate { get; set; } + } + + private List _songPartDataList; // 0x10 + } +} diff --git a/Assets/Scripts/umamusume/Gallop/SongPart.cs.meta b/Assets/Scripts/umamusume/Gallop/SongPart.cs.meta new file mode 100644 index 0000000..c4bb141 --- /dev/null +++ b/Assets/Scripts/umamusume/Gallop/SongPart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d0f3dc31bd9a38549aa0a74e8e21b9bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: