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.
		
		
		
		
		
			
		
			
				
	
	
		
			145 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			145 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			C#
		
	
| //------------------------------------------------------------------------------
 | |
| // <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 BuffPreCheckHasBuffFeature : IArticyBaseObject, IPropertyProvider
 | |
|     {
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private ArticyValueArticyObject mBuff = new ArticyValueArticyObject();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Boolean mBooleanValue = new Boolean();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private UInt64 mOwnerId;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private UInt32 mOwnerInstanceId;
 | |
|         
 | |
|         public ArticyObject Buff
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mBuff.GetValue();
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mBuff;
 | |
|                 mBuff.SetValue(value);
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffPreCheckHasBuff.Buff", oldValue.GetValue(), mBuff.GetValue());
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Boolean BooleanValue
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mBooleanValue;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mBooleanValue;
 | |
|                 mBooleanValue = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffPreCheckHasBuff.BooleanValue", oldValue, mBooleanValue);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         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.BuffPreCheckHasBuffFeature newClone = ((Articy.Touhou.Features.BuffPreCheckHasBuffFeature)(aClone));
 | |
|             if ((mBuff != null))
 | |
|             {
 | |
|                 newClone.mBuff = ((ArticyValueArticyObject)(mBuff.CloneObject(newClone, aFirstClassParent)));
 | |
|             }
 | |
|             newClone.BooleanValue = BooleanValue;
 | |
|             newClone.OwnerId = OwnerId;
 | |
|         }
 | |
|         
 | |
|         public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
 | |
|         {
 | |
|             Articy.Touhou.Features.BuffPreCheckHasBuffFeature clone = new Articy.Touhou.Features.BuffPreCheckHasBuffFeature();
 | |
|             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 == "Buff"))
 | |
|             {
 | |
|                 Buff = Articy.Unity.Interfaces.BaseScriptFragments.ObjectToModelRep(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "BooleanValue"))
 | |
|             {
 | |
|                 BooleanValue = System.Convert.ToBoolean(aValue);
 | |
|                 return;
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
 | |
|         {
 | |
|             if ((aProperty == "Buff"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Buff);
 | |
|             }
 | |
|             if ((aProperty == "BooleanValue"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(BooleanValue);
 | |
|             }
 | |
|             return null;
 | |
|         }
 | |
|         #endregion
 | |
|     }
 | |
| }
 |