초기커밋
This commit is contained in:
33
ServerBase/Event/SimpleEventTriggerBase.cs
Normal file
33
ServerBase/Event/SimpleEventTriggerBase.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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()}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user