XSGridEditor  1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
XSSLG.BuffBase Class Reference

buff基类 More...

Inheritance diagram for XSSLG.BuffBase:
XSSLG.CommonTableItem< BuffData, SkillUpdateData >

Public Member Functions

 BuffBase (BuffData data, SkillBase skill)
 构造函数 More...
 
void Destroy ()
 
override float GetSkillEffectProp (SkillEffectType type)
 
override bool GetSkillEffectFlag (SkillEffectType type)
 
override void StartWork ()
 
override void StopWork ()
 
void AddCount (int Count=1)
 增加buff层数 More...
 
virtual void OnAdd ()
 
- Public Member Functions inherited from XSSLG.CommonTableItem< BuffData, SkillUpdateData >
 CommonTableItem (TDATA data)
 构造函数 More...
 
override void OnTurnStart (TUPDATEDATA data)
 
virtual float PhyImmunityFactor ()
 减免伤害百分比必须大于0 More...
 
virtual float PhyDamageFactor ()
 

Properties

string Key [get]
 
bool CanStack [get]
 
int InitCount [get]
 
Stat Stat [get]
 
SkillBase Skill [get]
 这个buff的宿主skill,如果不是特定的,就是加在unit的skillnull对象里 More...
 
int TimeLeft = 0 [get, set]
 
int Count [get, protected set]
 
bool IsAlive = true [get, set]
 是否有效,在buff die的时候设置为false,如果再执行到die(die事件触发),为true就不处理,可以避免死循环 More...
 
- Properties inherited from XSSLG.CommonTableItem< BuffData, SkillUpdateData >
CustomScheduler Scheduler [get]
 定时几回合后使用 More...
 

Private Member Functions

bool NeedCountDuration ()
 是否需要持续时间计算 More...
 

Private Attributes

int _count = 0
 buff层数 More...
 

Additional Inherited Members

- Protected Member Functions inherited from XSSLG.CommonTableItem< BuffData, SkillUpdateData >
CustomSchedulerItem Schedule (Action func, int interval, int repeat=-1, bool immediate=false, int delay=0)
 
CustomSchedulerItem ScheduleOnce (Action func, int delay)
 
void UnSchedule (CustomSchedulerItem scheduler)
 

Detailed Description

buff基类

Constructor & Destructor Documentation

◆ BuffBase()

XSSLG.BuffBase.BuffBase ( BuffData  data,
SkillBase  skill 
)
inline

构造函数

Parameters
data
Returns

Member Function Documentation

◆ AddCount()

void XSSLG.BuffBase.AddCount ( int  Count = 1)
inline

增加buff层数

◆ Destroy()

void XSSLG.BuffBase.Destroy ( )
inline

◆ GetSkillEffectFlag()

override bool XSSLG.BuffBase.GetSkillEffectFlag ( SkillEffectType  type)
inlinevirtual

◆ GetSkillEffectProp()

override float XSSLG.BuffBase.GetSkillEffectProp ( SkillEffectType  type)
inlinevirtual

◆ NeedCountDuration()

bool XSSLG.BuffBase.NeedCountDuration ( )
private

是否需要持续时间计算

◆ OnAdd()

virtual void XSSLG.BuffBase.OnAdd ( )
inlinevirtual

◆ StartWork()

override void XSSLG.BuffBase.StartWork ( )
inline

◆ StopWork()

override void XSSLG.BuffBase.StopWork ( )
inline

Member Data Documentation

◆ _count

int XSSLG.BuffBase._count = 0
private

buff层数

Property Documentation

◆ CanStack

bool XSSLG.BuffBase.CanStack
get

◆ Count

int XSSLG.BuffBase.Count
getprotected set

◆ InitCount

int XSSLG.BuffBase.InitCount
get

◆ IsAlive

bool XSSLG.BuffBase.IsAlive = true
getsetprivate

是否有效,在buff die的时候设置为false,如果再执行到die(die事件触发),为true就不处理,可以避免死循环

◆ Key

string XSSLG.BuffBase.Key
get

◆ Skill

SkillBase XSSLG.BuffBase.Skill
get

这个buff的宿主skill,如果不是特定的,就是加在unit的skillnull对象里

◆ Stat

Stat XSSLG.BuffBase.Stat
get

◆ TimeLeft

int XSSLG.BuffBase.TimeLeft = 0
getsetprivate

The documentation for this class was generated from the following file: