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.
		
		
		
		
		
			
		
			
				
	
	
		
			439 lines
		
	
	
		
			14 KiB
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			439 lines
		
	
	
		
			14 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 Link : ArticyObject, ILink, IPropertyProvider, IObjectWithColor, IObjectWithText, IObjectWithUnresolvedText, IObjectWithExternalId, IObjectWithShortId, IObjectWithPosition, IObjectWithZIndex, IObjectWithSize, IObjectWithTarget
 | |
|     {
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Color mColor;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private String mText;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private String mExternalId;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Vector2 mPosition;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Single mZIndex;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Vector2 mSize;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private ArticyValueArticyObject mTarget = new ArticyValueArticyObject();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private UInt32 mShortId;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private VisibilityModes mVisibility = new VisibilityModes();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Boolean mShowDisplayName = new Boolean();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Color mDisplayNameColor;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Int32 mDisplayNameSize;
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private SelectabilityModes mSelectability = new SelectabilityModes();
 | |
|         
 | |
|         [SerializeField()]
 | |
|         private Boolean mDropShadow = new Boolean();
 | |
|         
 | |
|         public Color Color
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mColor;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mColor;
 | |
|                 mColor = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "Color", oldValue, mColor);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public String Unresolved_Text
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mText;
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public String Text
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return Articy.Unity.ArticyTextExtension.Resolve(this, mText);
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mText;
 | |
|                 mText = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "Text", oldValue, mText);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public String ExternalId
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mExternalId;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mExternalId;
 | |
|                 mExternalId = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "ExternalId", oldValue, mExternalId);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Vector2 Position
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mPosition;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mPosition;
 | |
|                 mPosition = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "Position", oldValue, mPosition);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Single ZIndex
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mZIndex;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mZIndex;
 | |
|                 mZIndex = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "ZIndex", oldValue, mZIndex);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Vector2 Size
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mSize;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mSize;
 | |
|                 mSize = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "Size", oldValue, mSize);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public ArticyObject Target
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mTarget.GetValue();
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mTarget;
 | |
|                 mTarget.SetValue(value);
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "Target", oldValue.GetValue(), mTarget.GetValue());
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public UInt32 ShortId
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mShortId;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mShortId;
 | |
|                 mShortId = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "ShortId", oldValue, mShortId);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public VisibilityModes Visibility
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mVisibility;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mVisibility;
 | |
|                 mVisibility = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "Visibility", oldValue, mVisibility);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Boolean ShowDisplayName
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mShowDisplayName;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mShowDisplayName;
 | |
|                 mShowDisplayName = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "ShowDisplayName", oldValue, mShowDisplayName);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Color DisplayNameColor
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mDisplayNameColor;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mDisplayNameColor;
 | |
|                 mDisplayNameColor = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "DisplayNameColor", oldValue, mDisplayNameColor);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Int32 DisplayNameSize
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mDisplayNameSize;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mDisplayNameSize;
 | |
|                 mDisplayNameSize = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "DisplayNameSize", oldValue, mDisplayNameSize);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public SelectabilityModes Selectability
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mSelectability;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mSelectability;
 | |
|                 mSelectability = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "Selectability", oldValue, mSelectability);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         public Boolean DropShadow
 | |
|         {
 | |
|             get
 | |
|             {
 | |
|                 return mDropShadow;
 | |
|             }
 | |
|             set
 | |
|             {
 | |
|                 var oldValue = mDropShadow;
 | |
|                 mDropShadow = value;
 | |
|                 Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(Id, InstanceId, "DropShadow", oldValue, mDropShadow);
 | |
|             }
 | |
|         }
 | |
|         
 | |
|         protected override void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent)
 | |
|         {
 | |
|             Link newClone = ((Link)(aClone));
 | |
|             newClone.Color = Color;
 | |
|             newClone.Text = Unresolved_Text;
 | |
|             newClone.ExternalId = ExternalId;
 | |
|             newClone.Position = Position;
 | |
|             newClone.ZIndex = ZIndex;
 | |
|             newClone.Size = Size;
 | |
|             if ((mTarget != null))
 | |
|             {
 | |
|                 newClone.mTarget = ((ArticyValueArticyObject)(mTarget.CloneObject(newClone, aFirstClassParent)));
 | |
|             }
 | |
|             newClone.ShortId = ShortId;
 | |
|             newClone.Visibility = Visibility;
 | |
|             newClone.ShowDisplayName = ShowDisplayName;
 | |
|             newClone.DisplayNameColor = DisplayNameColor;
 | |
|             newClone.DisplayNameSize = DisplayNameSize;
 | |
|             newClone.Selectability = Selectability;
 | |
|             newClone.DropShadow = DropShadow;
 | |
|             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 == "Color"))
 | |
|             {
 | |
|                 Color = ((Color)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "Text"))
 | |
|             {
 | |
|                 Text = System.Convert.ToString(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "ExternalId"))
 | |
|             {
 | |
|                 ExternalId = System.Convert.ToString(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "Position"))
 | |
|             {
 | |
|                 Position = ((Vector2)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "ZIndex"))
 | |
|             {
 | |
|                 ZIndex = System.Convert.ToSingle(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "Size"))
 | |
|             {
 | |
|                 Size = ((Vector2)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "Target"))
 | |
|             {
 | |
|                 Target = Articy.Unity.Interfaces.BaseScriptFragments.ObjectToModelRep(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "ShortId"))
 | |
|             {
 | |
|                 ShortId = ((UInt32)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "Visibility"))
 | |
|             {
 | |
|                 Visibility = ((VisibilityModes)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "ShowDisplayName"))
 | |
|             {
 | |
|                 ShowDisplayName = System.Convert.ToBoolean(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "DisplayNameColor"))
 | |
|             {
 | |
|                 DisplayNameColor = ((Color)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "DisplayNameSize"))
 | |
|             {
 | |
|                 DisplayNameSize = System.Convert.ToInt32(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "Selectability"))
 | |
|             {
 | |
|                 Selectability = ((SelectabilityModes)(aValue));
 | |
|                 return;
 | |
|             }
 | |
|             if ((aProperty == "DropShadow"))
 | |
|             {
 | |
|                 DropShadow = System.Convert.ToBoolean(aValue);
 | |
|                 return;
 | |
|             }
 | |
|             base.setProp(aProperty, aValue);
 | |
|         }
 | |
|         
 | |
|         public override Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
 | |
|         {
 | |
|             if ((aProperty == "Color"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Color);
 | |
|             }
 | |
|             if ((aProperty == "Text"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Text);
 | |
|             }
 | |
|             if ((aProperty == "ExternalId"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(ExternalId);
 | |
|             }
 | |
|             if ((aProperty == "Position"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Position);
 | |
|             }
 | |
|             if ((aProperty == "ZIndex"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(ZIndex);
 | |
|             }
 | |
|             if ((aProperty == "Size"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Size);
 | |
|             }
 | |
|             if ((aProperty == "Target"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Target);
 | |
|             }
 | |
|             if ((aProperty == "ShortId"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(ShortId);
 | |
|             }
 | |
|             if ((aProperty == "Visibility"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Visibility);
 | |
|             }
 | |
|             if ((aProperty == "ShowDisplayName"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(ShowDisplayName);
 | |
|             }
 | |
|             if ((aProperty == "DisplayNameColor"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(DisplayNameColor);
 | |
|             }
 | |
|             if ((aProperty == "DisplayNameSize"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(DisplayNameSize);
 | |
|             }
 | |
|             if ((aProperty == "Selectability"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(Selectability);
 | |
|             }
 | |
|             if ((aProperty == "DropShadow"))
 | |
|             {
 | |
|                 return new Articy.Unity.Interfaces.ScriptDataProxy(DropShadow);
 | |
|             }
 | |
|             return base.getProp(aProperty);
 | |
|         }
 | |
|         #endregion
 | |
|     }
 | |
| }
 |