34 lines
611 B
C#
34 lines
611 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
namespace ServerBase;
|
|
|
|
public abstract class SimpleEventTriggerBase : IEventTask
|
|
{
|
|
private bool m_is_completed = false;
|
|
|
|
public void setCompleted()
|
|
{
|
|
m_is_completed = true;
|
|
}
|
|
|
|
public bool isCompleted()
|
|
{
|
|
return m_is_completed;
|
|
}
|
|
|
|
public abstract Task<Result> onTriggerEffect();
|
|
|
|
public virtual string toBasicString()
|
|
{
|
|
return $"{this.getTypeName()}, IsCompleted:{isCompleted()}";
|
|
}
|
|
}
|