Files
Pal3.Unity/Assets/Scripts/Pal3/Command/SceCommands/SceneMoveObjectCommand.cs
T
2023-01-03 19:03:54 -08:00

32 lines
1.2 KiB
C#

// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Pal3.Command.SceCommands
{
[AvailableInConsole]
[SceCommand(90, "移动场景物体到某处," +
"参数:物件ID,原GameBox引擎下的一个三维坐标插值(X,Y,Z),动画时间")]
public class SceneMoveObjectCommand : ICommand
{
public SceneMoveObjectCommand(int objectId,
float gameBoxXOffset,
float gameBoxYOffset,
float gameBoxZOffset,
float duration)
{
ObjectId = objectId;
GameBoxXOffset = gameBoxXOffset;
GameBoxYOffset = gameBoxYOffset;
GameBoxZOffset = gameBoxZOffset;
Duration = duration;
}
public int ObjectId { get; }
public float GameBoxXOffset { get; }
public float GameBoxYOffset { get; }
public float GameBoxZOffset { get; }
public float Duration { get; }
}
}