//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Articy.Touhou; using Articy.Touhou.Features; using Articy.Unity; using Articy.Unity.Interfaces; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Articy.Touhou.Templates { [Serializable()] public class BuffEffect_04Template : IArticyBaseObject, IPropertyProvider { [SerializeField()] private ArticyValueBuffEffectClearLevelFeature mBuffEffectClearLevel = new ArticyValueBuffEffectClearLevelFeature(); [SerializeField()] private ArticyValueBuffEffectFeature mBuffEffect = new ArticyValueBuffEffectFeature(); [SerializeField()] private UInt64 mOwnerId; [SerializeField()] private UInt32 mOwnerInstanceId; public Articy.Touhou.Features.BuffEffectClearLevelFeature BuffEffectClearLevel { get { return mBuffEffectClearLevel.GetValue(); } set { mBuffEffectClearLevel.SetValue(value); } } public Articy.Touhou.Features.BuffEffectFeature BuffEffect { get { return mBuffEffect.GetValue(); } set { mBuffEffect.SetValue(value); } } public UInt64 OwnerId { get { return mOwnerId; } set { mOwnerId = value; BuffEffectClearLevel.OwnerId = value; BuffEffect.OwnerId = value; } } public UInt32 OwnerInstanceId { get { return mOwnerInstanceId; } set { mOwnerInstanceId = value; BuffEffectClearLevel.OwnerInstanceId = value; BuffEffect.OwnerInstanceId = value; } } private void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Touhou.Templates.BuffEffect_04Template newClone = ((Articy.Touhou.Templates.BuffEffect_04Template)(aClone)); if ((BuffEffectClearLevel != null)) { newClone.BuffEffectClearLevel = ((Articy.Touhou.Features.BuffEffectClearLevelFeature)(BuffEffectClearLevel.CloneObject(newClone, aFirstClassParent))); } if ((BuffEffect != null)) { newClone.BuffEffect = ((Articy.Touhou.Features.BuffEffectFeature)(BuffEffect.CloneObject(newClone, aFirstClassParent))); } newClone.OwnerId = OwnerId; } public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Touhou.Templates.BuffEffect_04Template clone = new Articy.Touhou.Templates.BuffEffect_04Template(); CloneProperties(clone, aFirstClassParent); return clone; } public virtual bool IsLocalizedPropertyOverwritten(string aProperty) { return false; } #region property provider interface public void setProp(string aProperty, object aValue) { int featureIndex = aProperty.IndexOf('.'); if ((featureIndex != -1)) { string featurePath = aProperty.Substring(0, featureIndex); string featureProperty = aProperty.Substring((featureIndex + 1)); if ((featurePath == "BuffEffectClearLevel")) { BuffEffectClearLevel.setProp(featureProperty, aValue); } if ((featurePath == "BuffEffect")) { BuffEffect.setProp(featureProperty, aValue); } } } public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty) { int featureIndex = aProperty.IndexOf('.'); if ((featureIndex != -1)) { string featurePath = aProperty.Substring(0, featureIndex); string featureProperty = aProperty.Substring((featureIndex + 1)); if ((featurePath == "BuffEffectClearLevel")) { return BuffEffectClearLevel.getProp(featureProperty); } if ((featurePath == "BuffEffect")) { return BuffEffect.getProp(featureProperty); } } return null; } #endregion } }