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.
169 lines
4.8 KiB
C#
169 lines
4.8 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 StunFeature : IArticyBaseObject, IPropertyProvider
|
|
{
|
|
|
|
[SerializeField()]
|
|
private Single mTime;
|
|
|
|
[SerializeField()]
|
|
private Int32 mRecoverSpeed;
|
|
|
|
[SerializeField()]
|
|
private Int32 mStunMax;
|
|
|
|
[SerializeField()]
|
|
private UInt64 mOwnerId;
|
|
|
|
[SerializeField()]
|
|
private UInt32 mOwnerInstanceId;
|
|
|
|
public Single Time
|
|
{
|
|
get
|
|
{
|
|
return mTime;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mTime;
|
|
mTime = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "Stun.Time", oldValue, mTime);
|
|
}
|
|
}
|
|
|
|
public Int32 RecoverSpeed
|
|
{
|
|
get
|
|
{
|
|
return mRecoverSpeed;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mRecoverSpeed;
|
|
mRecoverSpeed = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "Stun.RecoverSpeed", oldValue, mRecoverSpeed);
|
|
}
|
|
}
|
|
|
|
public Int32 StunMax
|
|
{
|
|
get
|
|
{
|
|
return mStunMax;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mStunMax;
|
|
mStunMax = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "Stun.StunMax", oldValue, mStunMax);
|
|
}
|
|
}
|
|
|
|
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.StunFeature newClone = ((Articy.Touhou.Features.StunFeature)(aClone));
|
|
newClone.Time = Time;
|
|
newClone.RecoverSpeed = RecoverSpeed;
|
|
newClone.StunMax = StunMax;
|
|
newClone.OwnerId = OwnerId;
|
|
}
|
|
|
|
public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
|
|
{
|
|
Articy.Touhou.Features.StunFeature clone = new Articy.Touhou.Features.StunFeature();
|
|
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 == "Time"))
|
|
{
|
|
Time = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "RecoverSpeed"))
|
|
{
|
|
RecoverSpeed = System.Convert.ToInt32(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "StunMax"))
|
|
{
|
|
StunMax = System.Convert.ToInt32(aValue);
|
|
return;
|
|
}
|
|
}
|
|
|
|
public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
|
|
{
|
|
if ((aProperty == "Time"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(Time);
|
|
}
|
|
if ((aProperty == "RecoverSpeed"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(RecoverSpeed);
|
|
}
|
|
if ((aProperty == "StunMax"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(StunMax);
|
|
}
|
|
return null;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|