You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			226 lines
		
	
	
		
			6.8 KiB
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			226 lines
		
	
	
		
			6.8 KiB
		
	
	
	
		
			C#
		
	
| 
											2 years ago
										 | //------------------------------------------------------------------------------ | ||
|  | // <auto-generated> | ||
|  | //     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. | ||
|  | // </auto-generated> | ||
|  | //------------------------------------------------------------------------------ | ||
|  | 
 | ||
|  | 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 ElementReactFeature : IArticyBaseObject, IPropertyProvider | ||
|  |     { | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private Element mElement1 = new Element(); | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private Element mElement2 = new Element(); | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private Element mElementResult = new Element(); | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private ArticyValueArticyObject mBuff = new ArticyValueArticyObject(); | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private Int32 mBuffLevel; | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private UInt64 mOwnerId; | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private UInt32 mOwnerInstanceId; | ||
|  |          | ||
|  |         public Element Element1 | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mElement1; | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 var oldValue = mElement1; | ||
|  |                 mElement1 = value; | ||
|  |                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "ElementReact.Element1", oldValue, mElement1); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public Element Element2 | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mElement2; | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 var oldValue = mElement2; | ||
|  |                 mElement2 = value; | ||
|  |                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "ElementReact.Element2", oldValue, mElement2); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public Element ElementResult | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mElementResult; | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 var oldValue = mElementResult; | ||
|  |                 mElementResult = value; | ||
|  |                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "ElementReact.ElementResult", oldValue, mElementResult); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public ArticyObject Buff | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mBuff.GetValue(); | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 var oldValue = mBuff; | ||
|  |                 mBuff.SetValue(value); | ||
|  |                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "ElementReact.Buff", oldValue.GetValue(), mBuff.GetValue()); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public Int32 BuffLevel | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mBuffLevel; | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 var oldValue = mBuffLevel; | ||
|  |                 mBuffLevel = value; | ||
|  |                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "ElementReact.BuffLevel", oldValue, mBuffLevel); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         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.ElementReactFeature newClone = ((Articy.Touhou.Features.ElementReactFeature)(aClone)); | ||
|  |             newClone.Element1 = Element1; | ||
|  |             newClone.Element2 = Element2; | ||
|  |             newClone.ElementResult = ElementResult; | ||
|  |             if ((mBuff != null)) | ||
|  |             { | ||
|  |                 newClone.mBuff = ((ArticyValueArticyObject)(mBuff.CloneObject(newClone, aFirstClassParent))); | ||
|  |             } | ||
|  |             newClone.BuffLevel = BuffLevel; | ||
|  |             newClone.OwnerId = OwnerId; | ||
|  |         } | ||
|  |          | ||
|  |         public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent) | ||
|  |         { | ||
|  |             Articy.Touhou.Features.ElementReactFeature clone = new Articy.Touhou.Features.ElementReactFeature(); | ||
|  |             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 == "Element1")) | ||
|  |             { | ||
|  |                 Element1 = ((Element)(aValue)); | ||
|  |                 return; | ||
|  |             } | ||
|  |             if ((aProperty == "Element2")) | ||
|  |             { | ||
|  |                 Element2 = ((Element)(aValue)); | ||
|  |                 return; | ||
|  |             } | ||
|  |             if ((aProperty == "ElementResult")) | ||
|  |             { | ||
|  |                 ElementResult = ((Element)(aValue)); | ||
|  |                 return; | ||
|  |             } | ||
|  |             if ((aProperty == "Buff")) | ||
|  |             { | ||
|  |                 Buff = Articy.Unity.Interfaces.BaseScriptFragments.ObjectToModelRep(aValue); | ||
|  |                 return; | ||
|  |             } | ||
|  |             if ((aProperty == "BuffLevel")) | ||
|  |             { | ||
|  |                 BuffLevel = System.Convert.ToInt32(aValue); | ||
|  |                 return; | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty) | ||
|  |         { | ||
|  |             if ((aProperty == "Element1")) | ||
|  |             { | ||
|  |                 return new Articy.Unity.Interfaces.ScriptDataProxy(Element1); | ||
|  |             } | ||
|  |             if ((aProperty == "Element2")) | ||
|  |             { | ||
|  |                 return new Articy.Unity.Interfaces.ScriptDataProxy(Element2); | ||
|  |             } | ||
|  |             if ((aProperty == "ElementResult")) | ||
|  |             { | ||
|  |                 return new Articy.Unity.Interfaces.ScriptDataProxy(ElementResult); | ||
|  |             } | ||
|  |             if ((aProperty == "Buff")) | ||
|  |             { | ||
|  |                 return new Articy.Unity.Interfaces.ScriptDataProxy(Buff); | ||
|  |             } | ||
|  |             if ((aProperty == "BuffLevel")) | ||
|  |             { | ||
|  |                 return new Articy.Unity.Interfaces.ScriptDataProxy(BuffLevel); | ||
|  |             } | ||
|  |             return null; | ||
|  |         } | ||
|  |         #endregion | ||
|  |     } | ||
|  | } |