초기커밋
This commit is contained in:
46
ServerBase/Entity/Action/EntityActionBase.cs
Normal file
46
ServerBase/Entity/Action/EntityActionBase.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
|
||||
using SESSION_ID = System.Int32;
|
||||
using META_ID = System.UInt32;
|
||||
using ENTITY_GUID = System.String;
|
||||
using ACCOUNT_ID = System.String;
|
||||
using OWNER_GUID = System.String;
|
||||
using USER_GUID = System.String;
|
||||
using CHARACTER_GUID = System.String;
|
||||
using ITEM_GUID = System.String;
|
||||
|
||||
|
||||
namespace ServerBase;
|
||||
|
||||
public abstract partial class EntityActionBase : IInitializer
|
||||
{
|
||||
private EntityBase m_owner;
|
||||
|
||||
public EntityActionBase(EntityBase owner)
|
||||
{
|
||||
m_owner = owner;
|
||||
}
|
||||
|
||||
public abstract Task<Result> onInit();
|
||||
|
||||
public abstract void onClear();
|
||||
|
||||
|
||||
public virtual async Task onTick()
|
||||
{
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
|
||||
public virtual string toBasicString()
|
||||
{
|
||||
return $"{this.getTypeName()}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user