Files
Pal3.Unity/Assets/Scripts/Pal3/Command/SceCommands/ScriptCheckIfActorInTeamCommand.cs
T
2022-02-27 17:26:01 -08:00

26 lines
863 B
C#

// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2022, Jiaqi Liu. All rights reserved.
// See LICENSE.txt in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Pal3.Command.SceCommands
{
using System;
[SceCommand(137, "检测角色是否在队伍里并设置给变量," +
"参数:角色ID")]
public class ScriptCheckIfActorInTeamCommand : ICommand
{
public ScriptCheckIfActorInTeamCommand(int actorId)
{
if (actorId == -1)
{
throw new Exception("ActorId should no be -1 for SceCommand 29");
}
ActorId = actorId;
}
public int ActorId { get; }
}
}