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.
258 lines
7.7 KiB
C#
258 lines
7.7 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 BuffEffectAttackFeature : IArticyBaseObject, IPropertyProvider
|
|
{
|
|
|
|
[SerializeField()]
|
|
private Element mElement = new Element();
|
|
|
|
[SerializeField()]
|
|
private Single mNumberValue;
|
|
|
|
[SerializeField()]
|
|
private String mEffect;
|
|
|
|
[SerializeField()]
|
|
private Boolean mIsStun = new Boolean();
|
|
|
|
[SerializeField()]
|
|
private Boolean mIsFlow = new Boolean();
|
|
|
|
[SerializeField()]
|
|
private Single mNumberValueLevel;
|
|
|
|
[SerializeField()]
|
|
private UInt64 mOwnerId;
|
|
|
|
[SerializeField()]
|
|
private UInt32 mOwnerInstanceId;
|
|
|
|
public Element Element
|
|
{
|
|
get
|
|
{
|
|
return mElement;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mElement;
|
|
mElement = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectAttack.Element", oldValue, mElement);
|
|
}
|
|
}
|
|
|
|
public Single NumberValue
|
|
{
|
|
get
|
|
{
|
|
return mNumberValue;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mNumberValue;
|
|
mNumberValue = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectAttack.NumberValue", oldValue, mNumberValue);
|
|
}
|
|
}
|
|
|
|
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, "BuffEffectAttack.Effect", oldValue, mEffect);
|
|
}
|
|
}
|
|
|
|
public Boolean IsStun
|
|
{
|
|
get
|
|
{
|
|
return mIsStun;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mIsStun;
|
|
mIsStun = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectAttack.IsStun", oldValue, mIsStun);
|
|
}
|
|
}
|
|
|
|
public Boolean IsFlow
|
|
{
|
|
get
|
|
{
|
|
return mIsFlow;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mIsFlow;
|
|
mIsFlow = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectAttack.IsFlow", oldValue, mIsFlow);
|
|
}
|
|
}
|
|
|
|
public Single NumberValueLevel
|
|
{
|
|
get
|
|
{
|
|
return mNumberValueLevel;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mNumberValueLevel;
|
|
mNumberValueLevel = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "BuffEffectAttack.NumberValueLevel", oldValue, mNumberValueLevel);
|
|
}
|
|
}
|
|
|
|
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.BuffEffectAttackFeature newClone = ((Articy.Touhou.Features.BuffEffectAttackFeature)(aClone));
|
|
newClone.Element = Element;
|
|
newClone.NumberValue = NumberValue;
|
|
newClone.Effect = Unresolved_Effect;
|
|
newClone.IsStun = IsStun;
|
|
newClone.IsFlow = IsFlow;
|
|
newClone.NumberValueLevel = NumberValueLevel;
|
|
newClone.OwnerId = OwnerId;
|
|
}
|
|
|
|
public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
|
|
{
|
|
Articy.Touhou.Features.BuffEffectAttackFeature clone = new Articy.Touhou.Features.BuffEffectAttackFeature();
|
|
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 == "Element"))
|
|
{
|
|
Element = ((Element)(aValue));
|
|
return;
|
|
}
|
|
if ((aProperty == "NumberValue"))
|
|
{
|
|
NumberValue = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "Effect"))
|
|
{
|
|
Effect = System.Convert.ToString(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "IsStun"))
|
|
{
|
|
IsStun = System.Convert.ToBoolean(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "IsFlow"))
|
|
{
|
|
IsFlow = System.Convert.ToBoolean(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "NumberValueLevel"))
|
|
{
|
|
NumberValueLevel = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
}
|
|
|
|
public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
|
|
{
|
|
if ((aProperty == "Element"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(Element);
|
|
}
|
|
if ((aProperty == "NumberValue"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(NumberValue);
|
|
}
|
|
if ((aProperty == "Effect"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(Effect);
|
|
}
|
|
if ((aProperty == "IsStun"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(IsStun);
|
|
}
|
|
if ((aProperty == "IsFlow"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(IsFlow);
|
|
}
|
|
if ((aProperty == "NumberValueLevel"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(NumberValueLevel);
|
|
}
|
|
return null;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|