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.
|
搜索周围敌人 More...
Public Member Functions | |
SearchTargetScope (SearchStruct searchStruct, int scope) | |
override List< XSTile > | GetAttackRegion (XSIGridMgr gridMgr, XSTile srcTile) |
获取攻击范围 More... | |
override List< XSTile > | GetAttackEffectRegion (Vector3Int cellPos, Vector3Int srcPos) |
获取攻击效果范围的格子,比如小十字,Scope为1,那么距离小于1的格子都加进去 More... | |
![]() | |
SearchTargetBase (SearchStruct searchStruct) | |
virtual List< UnitBase > | Search (OnTriggerDataCommon data) |
搜索返回可以攻击的对象 More... | |
Properties | |
int | Scope [get] |
周围多少范围内 More... | |
![]() | |
SearchStruct | SearchStruct [get] |
Additional Inherited Members | |
![]() | |
List< UnitBase > | SearchByPos (UnitBase src, XSTile tile, BattleLogic logic, XSIGridMgr gridMgr, XSTile srcTile) |
通过技能释放的原点,获取所有攻击对象 More... | |
virtual List< UnitBase > | SearchByAll (UnitBase src, BattleLogic logic, XSIGridMgr gridMgr, XSTile srcTile) |
遍历所有可能的技能释放原点,获取所有攻击对象,只要有攻击对象就直接返回,不全部搜索 More... | |
搜索周围敌人
|
inline |
|
inlinevirtual |
获取攻击效果范围的格子,比如小十字,Scope为1,那么距离小于1的格子都加进去
cellPos | 技能释放的原点,也可以说是鼠标点击的地点 |
srcPos | 技能释放者所在位置 |
Implements XSSLG.SearchTargetBase.
|
inlinevirtual |
|
getprivate |
周围多少范围内