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

27 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// ---------------------------------------------------------------------------------------------
// 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(201, "使角色向指定位置走,直到走出屏幕(不一定走到指定的点)," +
"参数:角色ID,TileMap中X坐标,TileMap中Y坐标,运动模式(0走,1跑)")]
public class ActorMoveOutOfScreenCommand : ICommand
{
public ActorMoveOutOfScreenCommand(int actorId, int tileXPosition, int tileYPosition, int mode)
{
ActorId = actorId;
TileXPosition = tileXPosition;
TileYPosition = tileYPosition;
Mode = mode;
}
// 角色ID为-1时 (byte值就是255) 表示当前受玩家操作的主角
public int ActorId { get; }
public int TileXPosition { get; }
public int TileYPosition { get; }
public int Mode { get; }
}
}