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.
250 lines
7.5 KiB
C#
250 lines
7.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 MoveParamJumpFeature : IArticyBaseObject, IPropertyProvider
|
|
{
|
|
|
|
[SerializeField()]
|
|
private Single mJumpForce;
|
|
|
|
[SerializeField()]
|
|
private Single mJumpTimeMin;
|
|
|
|
[SerializeField()]
|
|
private Single mJumpTimeMax;
|
|
|
|
[SerializeField()]
|
|
private Single mfallSpeed;
|
|
|
|
[SerializeField()]
|
|
private Single mfloatSpeed;
|
|
|
|
[SerializeField()]
|
|
private Single mairMoveRate;
|
|
|
|
[SerializeField()]
|
|
private UInt64 mOwnerId;
|
|
|
|
[SerializeField()]
|
|
private UInt32 mOwnerInstanceId;
|
|
|
|
public Single JumpForce
|
|
{
|
|
get
|
|
{
|
|
return mJumpForce;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mJumpForce;
|
|
mJumpForce = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamJump.JumpForce", oldValue, mJumpForce);
|
|
}
|
|
}
|
|
|
|
public Single JumpTimeMin
|
|
{
|
|
get
|
|
{
|
|
return mJumpTimeMin;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mJumpTimeMin;
|
|
mJumpTimeMin = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamJump.JumpTimeMin", oldValue, mJumpTimeMin);
|
|
}
|
|
}
|
|
|
|
public Single JumpTimeMax
|
|
{
|
|
get
|
|
{
|
|
return mJumpTimeMax;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mJumpTimeMax;
|
|
mJumpTimeMax = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamJump.JumpTimeMax", oldValue, mJumpTimeMax);
|
|
}
|
|
}
|
|
|
|
public Single fallSpeed
|
|
{
|
|
get
|
|
{
|
|
return mfallSpeed;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mfallSpeed;
|
|
mfallSpeed = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamJump.fallSpeed", oldValue, mfallSpeed);
|
|
}
|
|
}
|
|
|
|
public Single floatSpeed
|
|
{
|
|
get
|
|
{
|
|
return mfloatSpeed;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mfloatSpeed;
|
|
mfloatSpeed = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamJump.floatSpeed", oldValue, mfloatSpeed);
|
|
}
|
|
}
|
|
|
|
public Single airMoveRate
|
|
{
|
|
get
|
|
{
|
|
return mairMoveRate;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mairMoveRate;
|
|
mairMoveRate = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamJump.airMoveRate", oldValue, mairMoveRate);
|
|
}
|
|
}
|
|
|
|
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.MoveParamJumpFeature newClone = ((Articy.Touhou.Features.MoveParamJumpFeature)(aClone));
|
|
newClone.JumpForce = JumpForce;
|
|
newClone.JumpTimeMin = JumpTimeMin;
|
|
newClone.JumpTimeMax = JumpTimeMax;
|
|
newClone.fallSpeed = fallSpeed;
|
|
newClone.floatSpeed = floatSpeed;
|
|
newClone.airMoveRate = airMoveRate;
|
|
newClone.OwnerId = OwnerId;
|
|
}
|
|
|
|
public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
|
|
{
|
|
Articy.Touhou.Features.MoveParamJumpFeature clone = new Articy.Touhou.Features.MoveParamJumpFeature();
|
|
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 == "JumpForce"))
|
|
{
|
|
JumpForce = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "JumpTimeMin"))
|
|
{
|
|
JumpTimeMin = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "JumpTimeMax"))
|
|
{
|
|
JumpTimeMax = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "fallSpeed"))
|
|
{
|
|
fallSpeed = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "floatSpeed"))
|
|
{
|
|
floatSpeed = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "airMoveRate"))
|
|
{
|
|
airMoveRate = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
}
|
|
|
|
public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
|
|
{
|
|
if ((aProperty == "JumpForce"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(JumpForce);
|
|
}
|
|
if ((aProperty == "JumpTimeMin"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(JumpTimeMin);
|
|
}
|
|
if ((aProperty == "JumpTimeMax"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(JumpTimeMax);
|
|
}
|
|
if ((aProperty == "fallSpeed"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(fallSpeed);
|
|
}
|
|
if ((aProperty == "floatSpeed"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(floatSpeed);
|
|
}
|
|
if ((aProperty == "airMoveRate"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(airMoveRate);
|
|
}
|
|
return null;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|