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.
		
		
		
		
		
			
		
			
				
	
	
		
			166 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			166 lines
		
	
	
		
			5.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.Unity;
 | |
| using Articy.Unity.Interfaces;
 | |
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| 
 | |
| namespace Articy.Touhou
 | |
| {
 | |
|     
 | |
|     
 | |
|     public class UserFolder : ArticyObject, IUserFolder, IPropertyProvider, IObjectWithDisplayName, IObjectWithUnresolvedDisplayName, IObjectWithExternalId, IObjectWithShortId, IObjectWithZIndex
 | |
|     {
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private String mDisplayName;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private String mExternalId;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private UInt32 mShortId;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Single mZIndex;
 | |
|         
 | |
|         public String Unresolved_DisplayName
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mDisplayName;
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public String DisplayName
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return Articy.Unity.ArticyTextExtension.Resolve(this, mDisplayName);
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mDisplayName;
 | |
|                 mDisplayName = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "DisplayName", oldValue, mDisplayName);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public String ExternalId
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mExternalId;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mExternalId;
 | |
|                 mExternalId = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "ExternalId", oldValue, mExternalId);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public UInt32 ShortId
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mShortId;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mShortId;
 | |
|                 mShortId = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "ShortId", oldValue, mShortId);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Single ZIndex
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mZIndex;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mZIndex;
 | |
|                 mZIndex = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "ZIndex", oldValue, mZIndex);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         protected override void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent)
 | |
|         {
 | |
|             UserFolder newClone = ((UserFolder)(aClone));
 | |
|             newClone.DisplayName = Unresolved_DisplayName;
 | |
|             newClone.ExternalId = ExternalId;
 | |
|             newClone.ShortId = ShortId;
 | |
|             newClone.ZIndex = ZIndex;
 | |
|             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 == "DisplayName"))
 | |
|             {
 | |
|                 DisplayName = System.Convert.ToString(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "ExternalId"))
 | |
|             {
 | |
|                 ExternalId = System.Convert.ToString(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "ShortId"))
 | |
|             {
 | |
|                 ShortId = ((UInt32)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "ZIndex"))
 | |
|             {
 | |
|                 ZIndex = System.Convert.ToSingle(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             base.setProp(aProperty, aValue);
 | |
|         }
 | |
|         
 | |
|         public override Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
 | |
|         {
 | |
|             if ((aProperty == "DisplayName"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(DisplayName);
 | |
|             }
 | |
|             if ((aProperty == "ExternalId"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(ExternalId);
 | |
|             }
 | |
|             if ((aProperty == "ShortId"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(ShortId);
 | |
|             }
 | |
|             if ((aProperty == "ZIndex"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(ZIndex);
 | |
|             }
 | |
|             return base.getProp(aProperty);
 | |
|         }
 | |
|         #endregion
 | |
|     }
 | |
| }
 |