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.
		
		
		
		
		
			
		
			
				
	
	
		
			196 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			196 lines
		
	
	
		
			6.1 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 BuffEffectPropertyFeature : IArticyBaseObject, IPropertyProvider
 | |
|     {
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Property mProperty = new Property();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Single mNumberValue;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private PropertyChangeType mPropertyChangeType = new PropertyChangeType();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Single mNumberValueLevel;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private UInt64 mOwnerId;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private UInt32 mOwnerInstanceId;
 | |
|         
 | |
|         public Property Property
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mProperty;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mProperty;
 | |
|                 mProperty = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectProperty.Property", oldValue, mProperty);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Single NumberValue
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mNumberValue;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mNumberValue;
 | |
|                 mNumberValue = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectProperty.NumberValue", oldValue, mNumberValue);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public PropertyChangeType PropertyChangeType
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mPropertyChangeType;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mPropertyChangeType;
 | |
|                 mPropertyChangeType = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectProperty.PropertyChangeType", oldValue, mPropertyChangeType);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Single NumberValueLevel
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mNumberValueLevel;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mNumberValueLevel;
 | |
|                 mNumberValueLevel = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectProperty.NumberValueLevel", oldValue, mNumberValueLevel);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         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.BuffEffectPropertyFeature newClone = ((Articy.Touhou.Features.BuffEffectPropertyFeature)(aClone));
 | |
|             newClone.Property = Property;
 | |
|             newClone.NumberValue = NumberValue;
 | |
|             newClone.PropertyChangeType = PropertyChangeType;
 | |
|             newClone.NumberValueLevel = NumberValueLevel;
 | |
|             newClone.OwnerId = OwnerId;
 | |
|         }
 | |
|         
 | |
|         public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
 | |
|         {
 | |
|             Articy.Touhou.Features.BuffEffectPropertyFeature clone = new Articy.Touhou.Features.BuffEffectPropertyFeature();
 | |
|             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 == "Property"))
 | |
|             {
 | |
|                 Property = ((Property)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "NumberValue"))
 | |
|             {
 | |
|                 NumberValue = System.Convert.ToSingle(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "PropertyChangeType"))
 | |
|             {
 | |
|                 PropertyChangeType = ((PropertyChangeType)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "NumberValueLevel"))
 | |
|             {
 | |
|                 NumberValueLevel = System.Convert.ToSingle(aValue);
 | |
|                 return;
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
 | |
|         {
 | |
|             if ((aProperty == "Property"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Property);
 | |
|             }
 | |
|             if ((aProperty == "NumberValue"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(NumberValue);
 | |
|             }
 | |
|             if ((aProperty == "PropertyChangeType"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(PropertyChangeType);
 | |
|             }
 | |
|             if ((aProperty == "NumberValueLevel"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(NumberValueLevel);
 | |
|             }
 | |
|             return null;
 | |
|         }
 | |
|         #endregion
 | |
|     }
 | |
| }
 |