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.
277 lines
8.3 KiB
C#
277 lines
8.3 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 MoveParamBasicFeature : IArticyBaseObject, IPropertyProvider
|
|
{
|
|
|
|
[SerializeField()]
|
|
private Single mSpeedMax;
|
|
|
|
[SerializeField()]
|
|
private Single mMoveForce;
|
|
|
|
[SerializeField()]
|
|
private Single mGroundDrag;
|
|
|
|
[SerializeField()]
|
|
private Single mAirDrag;
|
|
|
|
[SerializeField()]
|
|
private Boolean mIsFlying = new Boolean();
|
|
|
|
[SerializeField()]
|
|
private Boolean mneedScale = new Boolean();
|
|
|
|
[SerializeField()]
|
|
private Single mGravity;
|
|
|
|
[SerializeField()]
|
|
private UInt64 mOwnerId;
|
|
|
|
[SerializeField()]
|
|
private UInt32 mOwnerInstanceId;
|
|
|
|
public Single SpeedMax
|
|
{
|
|
get
|
|
{
|
|
return mSpeedMax;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mSpeedMax;
|
|
mSpeedMax = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamBasic.SpeedMax", oldValue, mSpeedMax);
|
|
}
|
|
}
|
|
|
|
public Single MoveForce
|
|
{
|
|
get
|
|
{
|
|
return mMoveForce;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mMoveForce;
|
|
mMoveForce = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamBasic.MoveForce", oldValue, mMoveForce);
|
|
}
|
|
}
|
|
|
|
public Single GroundDrag
|
|
{
|
|
get
|
|
{
|
|
return mGroundDrag;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mGroundDrag;
|
|
mGroundDrag = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamBasic.GroundDrag", oldValue, mGroundDrag);
|
|
}
|
|
}
|
|
|
|
public Single AirDrag
|
|
{
|
|
get
|
|
{
|
|
return mAirDrag;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mAirDrag;
|
|
mAirDrag = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamBasic.AirDrag", oldValue, mAirDrag);
|
|
}
|
|
}
|
|
|
|
public Boolean IsFlying
|
|
{
|
|
get
|
|
{
|
|
return mIsFlying;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mIsFlying;
|
|
mIsFlying = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamBasic.IsFlying", oldValue, mIsFlying);
|
|
}
|
|
}
|
|
|
|
public Boolean needScale
|
|
{
|
|
get
|
|
{
|
|
return mneedScale;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mneedScale;
|
|
mneedScale = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamBasic.needScale", oldValue, mneedScale);
|
|
}
|
|
}
|
|
|
|
public Single Gravity
|
|
{
|
|
get
|
|
{
|
|
return mGravity;
|
|
}
|
|
set
|
|
{
|
|
var oldValue = mGravity;
|
|
mGravity = value;
|
|
Articy.Unity.ArticyDatabase.ObjectNotifications.ReportChanged(OwnerId, OwnerInstanceId, "MoveParamBasic.Gravity", oldValue, mGravity);
|
|
}
|
|
}
|
|
|
|
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.MoveParamBasicFeature newClone = ((Articy.Touhou.Features.MoveParamBasicFeature)(aClone));
|
|
newClone.SpeedMax = SpeedMax;
|
|
newClone.MoveForce = MoveForce;
|
|
newClone.GroundDrag = GroundDrag;
|
|
newClone.AirDrag = AirDrag;
|
|
newClone.IsFlying = IsFlying;
|
|
newClone.needScale = needScale;
|
|
newClone.Gravity = Gravity;
|
|
newClone.OwnerId = OwnerId;
|
|
}
|
|
|
|
public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent)
|
|
{
|
|
Articy.Touhou.Features.MoveParamBasicFeature clone = new Articy.Touhou.Features.MoveParamBasicFeature();
|
|
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 == "SpeedMax"))
|
|
{
|
|
SpeedMax = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "MoveForce"))
|
|
{
|
|
MoveForce = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "GroundDrag"))
|
|
{
|
|
GroundDrag = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "AirDrag"))
|
|
{
|
|
AirDrag = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "IsFlying"))
|
|
{
|
|
IsFlying = System.Convert.ToBoolean(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "needScale"))
|
|
{
|
|
needScale = System.Convert.ToBoolean(aValue);
|
|
return;
|
|
}
|
|
if ((aProperty == "Gravity"))
|
|
{
|
|
Gravity = System.Convert.ToSingle(aValue);
|
|
return;
|
|
}
|
|
}
|
|
|
|
public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty)
|
|
{
|
|
if ((aProperty == "SpeedMax"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(SpeedMax);
|
|
}
|
|
if ((aProperty == "MoveForce"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(MoveForce);
|
|
}
|
|
if ((aProperty == "GroundDrag"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(GroundDrag);
|
|
}
|
|
if ((aProperty == "AirDrag"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(AirDrag);
|
|
}
|
|
if ((aProperty == "IsFlying"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(IsFlying);
|
|
}
|
|
if ((aProperty == "needScale"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(needScale);
|
|
}
|
|
if ((aProperty == "Gravity"))
|
|
{
|
|
return new Articy.Unity.Interfaces.ScriptDataProxy(Gravity);
|
|
}
|
|
return null;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|