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.
		
		
		
		
		
			
		
			
	
	
		
			159 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			159 lines
		
	
	
		
			5.1 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.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 MoveParamTemplate : IArticyBaseObject, IPropertyProvider | ||
|  |     { | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private ArticyValueMoveParamJumpFeature mMoveParamJump = new ArticyValueMoveParamJumpFeature(); | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private ArticyValueMoveParamBasicFeature mMoveParamBasic = new ArticyValueMoveParamBasicFeature(); | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private UInt64 mOwnerId; | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private UInt32 mOwnerInstanceId; | ||
|  |          | ||
|  |         public Articy.Touhou.Features.MoveParamJumpFeature MoveParamJump | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mMoveParamJump.GetValue(); | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 mMoveParamJump.SetValue(value); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public Articy.Touhou.Features.MoveParamBasicFeature MoveParamBasic | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mMoveParamBasic.GetValue(); | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 mMoveParamBasic.SetValue(value); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public UInt64 OwnerId | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mOwnerId; | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 mOwnerId = value; | ||
|  |                 MoveParamJump.OwnerId = value; | ||
|  |                 MoveParamBasic.OwnerId = value; | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public UInt32 OwnerInstanceId | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mOwnerInstanceId; | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 mOwnerInstanceId = value; | ||
|  |                 MoveParamJump.OwnerInstanceId = value; | ||
|  |                 MoveParamBasic.OwnerInstanceId = value; | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         private void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent) | ||
|  |         { | ||
|  |             Articy.Touhou.Templates.MoveParamTemplate newClone = ((Articy.Touhou.Templates.MoveParamTemplate)(aClone)); | ||
|  |             if ((MoveParamJump != null)) | ||
|  |             { | ||
|  |                 newClone.MoveParamJump = ((Articy.Touhou.Features.MoveParamJumpFeature)(MoveParamJump.CloneObject(newClone, aFirstClassParent))); | ||
|  |             } | ||
|  |             if ((MoveParamBasic != null)) | ||
|  |             { | ||
|  |                 newClone.MoveParamBasic = ((Articy.Touhou.Features.MoveParamBasicFeature)(MoveParamBasic.CloneObject(newClone, aFirstClassParent))); | ||
|  |             } | ||
|  |             newClone.OwnerId = OwnerId; | ||
|  |         } | ||
|  |          | ||
|  |         public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent) | ||
|  |         { | ||
|  |             Articy.Touhou.Templates.MoveParamTemplate clone = new Articy.Touhou.Templates.MoveParamTemplate(); | ||
|  |             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 == "MoveParamJump")) | ||
|  |                 { | ||
|  |                     MoveParamJump.setProp(featureProperty, aValue); | ||
|  |                 } | ||
|  |                 if ((featurePath == "MoveParamBasic")) | ||
|  |                 { | ||
|  |                     MoveParamBasic.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 == "MoveParamJump")) | ||
|  |                 { | ||
|  |                     return MoveParamJump.getProp(featureProperty); | ||
|  |                 } | ||
|  |                 if ((featurePath == "MoveParamBasic")) | ||
|  |                 { | ||
|  |                     return MoveParamBasic.getProp(featureProperty); | ||
|  |                 } | ||
|  |             } | ||
|  |             return null; | ||
|  |         } | ||
|  |         #endregion | ||
|  |     } | ||
|  | } |