mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-27 18:08:09 +08:00
27 lines
889 B
C#
27 lines
889 B
C#
// ---------------------------------------------------------------------------------------------
|
|
// Copyright (c) 2021-2022, Jiaqi Liu. All rights reserved.
|
|
// See LICENSE file in the project root for license information.
|
|
// ---------------------------------------------------------------------------------------------
|
|
|
|
namespace Pal3.Command.SceCommands
|
|
{
|
|
using System;
|
|
|
|
[AvailableInConsole]
|
|
[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; }
|
|
}
|
|
} |