protected override void ReadScriptableObject <T>(ES3Reader reader, object obj) { var instance = (HK.AutoAnt.CellControllers.Events.Road)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "size": reader.SetPrivateField("size", reader.Read <System.Int32>(), instance); break; case "Level": instance.Level = reader.Read <System.Int32>(ES3Type_int.Instance); break; case "Origin": reader.SetPrivateProperty("Origin", reader.Read <UnityEngine.Vector2Int>(), instance); break; case "name": instance.name = reader.Read <System.String>(ES3Type_string.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (UnityEngine.UI.RawImage)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "texture": instance.texture = reader.Read <UnityEngine.Texture>(ES3Type_Texture.Instance); break; case "uvRect": instance.uvRect = reader.Read <UnityEngine.Rect>(ES3Type_Rect.Instance); break; case "onCullStateChanged": instance.onCullStateChanged = reader.Read <UnityEngine.UI.MaskableGraphic.CullStateChangedEvent>(); break; case "maskable": instance.maskable = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "color": instance.color = reader.Read <UnityEngine.Color>(ES3Type_Color.Instance); break; case "raycastTarget": instance.raycastTarget = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "useLegacyMeshGeneration": reader.SetPrivateProperty("useLegacyMeshGeneration", reader.Read <System.Boolean>(), instance); break; case "material": instance.material = reader.Read <UnityEngine.Material>(ES3Type_Material.Instance); break; case "useGUILayout": instance.useGUILayout = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "hideFlags": instance.hideFlags = reader.Read <UnityEngine.HideFlags>(); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (CCG.UserData)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "ClearedStageNum": reader.SetPrivateProperty("ClearedStageNum", reader.Read <System.Int32>(), instance); break; case "TotalCoin": reader.SetPrivateProperty("TotalCoin", reader.Read <System.Int32>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Ling.Chara.EnemyModel)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_cellPosition": reader.SetPrivateField("_cellPosition", reader.Read <Ling.Common.ReactiveProperty.Vector2IntReactiveProperty>(), instance); break; case "_param": reader.SetPrivateField("_param", reader.Read <Ling.Chara.CharaModel.Param>(), instance); break; case "Type": reader.SetPrivateProperty("Type", reader.Read <Ling.Const.EnemyType>(), instance); break; case "Status": reader.SetPrivateProperty("Status", reader.Read <Ling.Chara.CharaStatus>(), instance); break; case "CellIndex": reader.SetPrivateProperty("CellIndex", reader.Read <System.Int32>(), instance); break; case "Dir": reader.SetPrivateProperty("Dir", reader.Read <Ling.Common.ReactiveProperty.Vector2IntReactiveProperty>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (UnityEngine.UI.Image)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "sprite": instance.sprite = reader.Read <UnityEngine.Sprite>(ES3Type_Sprite.Instance); break; case "overrideSprite": instance.overrideSprite = reader.Read <UnityEngine.Sprite>(ES3Type_Sprite.Instance); break; case "type": instance.type = reader.Read <UnityEngine.UI.Image.Type>(); break; case "preserveAspect": instance.preserveAspect = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "fillCenter": instance.fillCenter = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "fillMethod": instance.fillMethod = reader.Read <UnityEngine.UI.Image.FillMethod>(); break; case "fillAmount": instance.fillAmount = reader.Read <System.Single>(ES3Type_float.Instance); break; case "fillClockwise": instance.fillClockwise = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "fillOrigin": instance.fillOrigin = reader.Read <System.Int32>(ES3Type_int.Instance); break; case "alphaHitTestMinimumThreshold": instance.alphaHitTestMinimumThreshold = reader.Read <System.Single>(ES3Type_float.Instance); break; #if UNITY_2019_1_OR_NEWER case "useSpriteMesh": instance.useSpriteMesh = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; #endif case "material": instance.material = reader.Read <UnityEngine.Material>(ES3Type_Material.Instance); break; case "onCullStateChanged": instance.onCullStateChanged = reader.Read <UnityEngine.UI.MaskableGraphic.CullStateChangedEvent>(); break; case "maskable": instance.maskable = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "color": instance.color = reader.Read <UnityEngine.Color>(ES3Type_Color.Instance); break; case "raycastTarget": instance.raycastTarget = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "useLegacyMeshGeneration": reader.SetPrivateProperty("useLegacyMeshGeneration", reader.Read <System.Boolean>(), instance); break; case "useGUILayout": instance.useGUILayout = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "hideFlags": instance.hideFlags = reader.Read <UnityEngine.HideFlags>(ES3Type_enum.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (UnityEngine.Animator)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "rootPosition": instance.rootPosition = reader.Read <UnityEngine.Vector3>(ES3Type_Vector3.Instance); break; case "rootRotation": instance.rootRotation = reader.Read <UnityEngine.Quaternion>(ES3Type_Quaternion.Instance); break; case "applyRootMotion": instance.applyRootMotion = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "updateMode": instance.updateMode = reader.Read <UnityEngine.AnimatorUpdateMode>(); break; case "allowConstantClipSamplingOptimization": reader.SetPrivateProperty("allowConstantClipSamplingOptimization", reader.Read <System.Boolean>(), instance); break; case "bodyPosition": instance.bodyPosition = reader.Read <UnityEngine.Vector3>(ES3Type_Vector3.Instance); break; case "bodyPositionInternal": reader.SetPrivateProperty("bodyPositionInternal", reader.Read <UnityEngine.Vector3>(), instance); break; case "bodyRotation": instance.bodyRotation = reader.Read <UnityEngine.Quaternion>(ES3Type_Quaternion.Instance); break; case "bodyRotationInternal": reader.SetPrivateProperty("bodyRotationInternal", reader.Read <UnityEngine.Quaternion>(), instance); break; case "stabilizeFeet": instance.stabilizeFeet = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "feetPivotActive": instance.feetPivotActive = reader.Read <System.Single>(ES3Type_float.Instance); break; case "speed": instance.speed = reader.Read <System.Single>(ES3Type_float.Instance); break; case "cullingMode": instance.cullingMode = reader.Read <UnityEngine.AnimatorCullingMode>(); break; case "playbackTime": instance.playbackTime = reader.Read <System.Single>(ES3Type_float.Instance); break; case "recorderStartTime": instance.recorderStartTime = reader.Read <System.Single>(ES3Type_float.Instance); break; case "recorderStopTime": instance.recorderStopTime = reader.Read <System.Single>(ES3Type_float.Instance); break; case "layersAffectMassCenter": instance.layersAffectMassCenter = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "logWarnings": instance.logWarnings = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "fireEvents": instance.fireEvents = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "keepAnimatorControllerStateOnDisable": instance.keepAnimatorControllerStateOnDisable = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } }