//------------------------------------------------------------------------------ // // 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.Unity; using Articy.Unity.Interfaces; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Articy.Touhou.Features { [Serializable()] public class EntityHitBoxParamFeature : IArticyBaseObject, IPropertyProvider { [SerializeField()] private Int32 mRadius; [SerializeField()] private Int32 mHeight; [SerializeField()] private UInt64 mOwnerId; [SerializeField()] private UInt32 mOwnerInstanceId; public Int32 Radius { get { return mRadius; } set { var oldValue = mRadius; mRadius = value; Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "EntityHitBoxParam.Radius", oldValue, mRadius); } } public Int32 Height { get { return mHeight; } set { var oldValue = mHeight; mHeight = value; Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "EntityHitBoxParam.Height", oldValue, mHeight); } } public UInt64 OwnerId { get { return mOwnerId; } set { mOwnerId = value; } } public UInt32 OwnerInstanceId { get { return mOwnerInstanceId; } set { mOwnerInstanceId = value; } } private void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Touhou.Features.EntityHitBoxParamFeature newClone = ((Articy.Touhou.Features.EntityHitBoxParamFeature)(aClone)); newClone.Radius = Radius; newClone.Height = Height; newClone.OwnerId = OwnerId; } public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Touhou.Features.EntityHitBoxParamFeature clone = new Articy.Touhou.Features.EntityHitBoxParamFeature(); CloneProperties(clone, aFirstClassParent); return clone; } public virtual bool IsLocalizedPropertyOverwritten(string aProperty) { return false; } #region property provider interface public void setProp(string aProperty, object aValue) { if ((aProperty == "Radius")) { Radius = System.Convert.ToInt32(aValue); return; } if ((aProperty == "Height")) { Height = System.Convert.ToInt32(aValue); return; } } public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty) { if ((aProperty == "Radius")) { return new Articy.Unity.Interfaces.ScriptDataProxy(Radius); } if ((aProperty == "Height")) { return new Articy.Unity.Interfaces.ScriptDataProxy(Height); } return null; } #endregion } }