34 lines
812 B
C#
34 lines
812 B
C#
using Cal.DataTable;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ET
|
|
{
|
|
public enum BuffState
|
|
{
|
|
Waiting,
|
|
Running,
|
|
Finished
|
|
}
|
|
public abstract class GoodsEffect
|
|
{
|
|
public GoodsBase GoodsBase { get; set; }
|
|
public long unitId { get; set; }
|
|
public Unit unit { get; set; }
|
|
|
|
public BuffState BuffState{ get; set; }
|
|
|
|
public bool IsLock { get; set; }
|
|
|
|
public long BuffEndTime { get; set; }
|
|
|
|
public abstract string Init(Unit unit,GoodsBase goodsBase,bool isLock=false);
|
|
public virtual void ReInit(Unit unit, GoodsBase goodsBase,long endTime) { }
|
|
public virtual void RunOnce() { }
|
|
public abstract ETVoid Execute();
|
|
public virtual void Finish() { }
|
|
|
|
}
|
|
}
|