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.
		
		
		
		
		
			
		
			
	
	
		
			94 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			94 lines
		
	
	
		
			2.9 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.Features; | ||
|  | using Articy.Unity; | ||
|  | using Articy.Unity.Interfaces; | ||
|  | using System; | ||
|  | using System.Collections; | ||
|  | using System.Collections.Generic; | ||
|  | using UnityEngine; | ||
|  | 
 | ||
|  | 
 | ||
|  | namespace Articy.Touhou | ||
|  | { | ||
|  |      | ||
|  |      | ||
|  |     public class Weapon : Entity, IEntity, IPropertyProvider, IObjectWithFeatureWeaponBasic | ||
|  |     { | ||
|  |          | ||
|  |         [SerializeField()] | ||
|  |         private ArticyValueWeaponTemplate mTemplate = new ArticyValueWeaponTemplate(); | ||
|  |          | ||
|  |         private static Articy.Touhou.Templates.WeaponTemplateConstraint mConstraints = new Articy.Touhou.Templates.WeaponTemplateConstraint(); | ||
|  |          | ||
|  |         public Articy.Touhou.Templates.WeaponTemplate Template | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mTemplate.GetValue(); | ||
|  |             } | ||
|  |             set | ||
|  |             { | ||
|  |                 mTemplate.SetValue(value); | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public static Articy.Touhou.Templates.WeaponTemplateConstraint Constraints | ||
|  |         { | ||
|  |             get | ||
|  |             { | ||
|  |                 return mConstraints; | ||
|  |             } | ||
|  |         } | ||
|  |          | ||
|  |         public WeaponBasicFeature GetFeatureWeaponBasic() | ||
|  |         { | ||
|  |             return Template.WeaponBasic; | ||
|  |         } | ||
|  |          | ||
|  |         protected override void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent) | ||
|  |         { | ||
|  |             Weapon newClone = ((Weapon)(aClone)); | ||
|  |             if ((Template != null)) | ||
|  |             { | ||
|  |                 newClone.Template = ((Articy.Touhou.Templates.WeaponTemplate)(Template.CloneObject(newClone, aFirstClassParent))); | ||
|  |             } | ||
|  |             base.CloneProperties(newClone, aFirstClassParent); | ||
|  |         } | ||
|  |          | ||
|  |         public override bool IsLocalizedPropertyOverwritten(string aProperty) | ||
|  |         { | ||
|  |             return base.IsLocalizedPropertyOverwritten(aProperty); | ||
|  |         } | ||
|  |          | ||
|  |         #region property provider interface | ||
|  |         public override void setProp(string aProperty, object aValue) | ||
|  |         { | ||
|  |             if (aProperty.Contains(".")) | ||
|  |             { | ||
|  |                 Template.setProp(aProperty, aValue); | ||
|  |                 return; | ||
|  |             } | ||
|  |             base.setProp(aProperty, aValue); | ||
|  |         } | ||
|  |          | ||
|  |         public override Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty) | ||
|  |         { | ||
|  |             if (aProperty.Contains(".")) | ||
|  |             { | ||
|  |                 return Template.getProp(aProperty); | ||
|  |             } | ||
|  |             return base.getProp(aProperty); | ||
|  |         } | ||
|  |         #endregion | ||
|  |     } | ||
|  | } |