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

28 lines
915 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(29, "设置角色的对话脚本," +
"参数:角色ID,脚本ID")]
public class ActorSetScriptCommand : ICommand
{
public ActorSetScriptCommand(int actorId, int scriptId)
{
if (actorId == -1)
{
throw new Exception("ActorId should no be -1 for SceCommand 29");
}
ActorId = actorId;
ScriptId = scriptId;
}
public int ActorId { get; }
public int ScriptId { get; }
}
}