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.
180 lines
5.5 KiB
C#
180 lines
5.5 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 BuffEffectFeature : IArticyBaseObject, IPropertyProvider
|
|
{
|
|
|
|
[SerializeField()]
|
|
private BuffEffectTimingType mBuffEffectTimingType = new BuffEffectTimingType();
|
|
|
|
[SerializeField()]
|
|
private String mEffect;
|
|
|
|
[SerializeField()]
|
|
private ArticyValueArticyObject mBless = new ArticyValueArticyObject();
|
|
|
|
[SerializeField()]
|
|
private UInt64 mOwnerId;
|
|
|
|
[SerializeField()]
|
|
private UInt32 mOwnerInstanceId;
|
|
|
|
public BuffEffectTimingType BuffEffectTimingType
|
|
{
|
|
get
|
|
{
|
|
return mBuffEffectTimingType;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mBuffEffectTimingType;
|
|
mBuffEffectTimingType = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffect.BuffEffectTimingType", oldValue, mBuffEffectTimingType);
|
|
}
|
|
}
|
|
|
|
public String Unresolved_Effect
|
|
{
|
|
get
|
|
{
|
|
return mEffect;
|
|
}
|
|
}
|
|
|
|
public String Effect
|
|
{
|
|
get
|
|
{
|
|
return Articy.Unity.ArticyTextExtension.Resolve(this, mEffect);
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mEffect;
|
|
mEffect = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffect.Effect", oldValue, mEffect);
|
|
}
|
|
}
|
|
|
|
public ArticyObject Bless
|
|
{
|
|
get
|
|
{
|
|
return mBless.GetValue();
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mBless;
|
|
mBless.SetValue(value);
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffect.Bless", oldValue.GetValue(), mBless.GetValue());
|
|
}
|
|
}
|
|
|
|
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.BuffEffectFeature newClone = ((Articy.Touhou.Features.BuffEffectFeature)(aClone));
|
|
newClone.BuffEffectTimingType = BuffEffectTimingType;
|
|
newClone.Effect = Unresolved_Effect;
|
|
if ((mBless != null))
|
|
{
|
|
newClone.mBless = ((ArticyValueArticyObject)(mBless.CloneObject(newClone, aFirstClassParent)));
|
|
}
|
|
newClone.OwnerId = OwnerId;
|
|
}
|
|
|
|
public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
|
|
{
|
|
Articy.Touhou.Features.BuffEffectFeature clone = new Articy.Touhou.Features.BuffEffectFeature();
|
|
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 == "BuffEffectTimingType"))
|
|
{
|
|
BuffEffectTimingType = ((BuffEffectTimingType)(aValue));
|
|
return;
|
|
}
|
|
if ((aProperty == "Effect"))
|
|
{
|
|
Effect = System.Convert.ToString(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "Bless"))
|
|
{
|
|
Bless = Articy.Unity.Interfaces.BaseScriptFragments.ObjectToModelRep(aValue);
|
|
return;
|
|
}
|
|
}
|
|
|
|
public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
|
|
{
|
|
if ((aProperty == "BuffEffectTimingType"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(BuffEffectTimingType);
|
|
}
|
|
if ((aProperty == "Effect"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(Effect);
|
|
}
|
|
if ((aProperty == "Bless"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(Bless);
|
|
}
|
|
return null;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|