返回值

This commit is contained in:
陈向学 2024-08-26 09:49:50 +08:00
parent 8ccf7fad23
commit d6df7a0551
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ public class Device_Base : PermanentTriggerBase
/// <summary>
/// trigger触发事件
/// </summary>
private Action<string,bool> triggerAction;
public Func<string,bool,int> triggerAction;
protected override void OnStart()
{
@ -39,7 +39,7 @@ public class Device_Base : PermanentTriggerBase
}
}
public void AddTriggerAction(Action<string,bool> action)
public void AddTriggerAction(Func<string, bool, int> action)
{
this.triggerAction = action;
}

View File

@ -16,7 +16,7 @@ public class Tool_Base : PermanentTriggerBase
/// <summary>
/// trigger触发事件
/// </summary>
private Action<string,bool> triggerAction;
public Func<string, bool, int> triggerAction;
protected override void OnStart()
{
@ -43,7 +43,7 @@ public class Tool_Base : PermanentTriggerBase
}
}
public void AddTriggerAction(Action<string,bool> action)
public void AddTriggerAction(Func<string, bool, int> action)
{
this.triggerAction = action;
}