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 | Public Attributes | Protected Member Functions | Protected Attributes | Properties | Private Member Functions | List of all members
XSSLG.XSUnitNode Class Reference

unit data More...

Inheritance diagram for XSSLG.XSUnitNode:
XSSLG.XSIUnitNode XSSLG.XSINode

Public Member Functions

virtual Unit GetUnit ()
 
virtual void AddBoxCollider ()
 
virtual void RemoveNode ()
 
virtual bool IsNull ()
 You cannot use "==" to check gameobject is null, because the gameobject in Unity is override "==", but when the gameobject is converted to the XSITileRoot, it will not use the override "==" More...
 
virtual void UpdatePos ()
 
void RotateTo (XSTile tile)
 
void WalkTo (List< Vector3 > path)
 move to the destination More...
 
virtual IEnumerator MovementAnimation (List< Vector3 > path)
 Coroutine to deal move More...
 
void AttackAnimation ()
 攻击动画 More...
 
void ApplyDamageAnimation (int damage)
 受击动画 More...
 
void DieAnimation ()
 死亡动画 More...
 
virtual void CheckSkillKeyList (List< string > skillKeyList)
 remove wrong key More...
 

Public Attributes

GroupType Group = GroupType.Self
 单位势力 More...
 

Protected Member Functions

virtual Bounds GetMaxBounds ()
 

Protected Attributes

RoleData data = new RoleData()
 
int movementAnimationSpeed = 2
 

Properties

RoleData Data [get, set]
 
Dictionary< Vector3, List< Vector3 > > CachedPaths [get, protected set]
 
Vector3 WorldPos [get, set]
 
bool IsMoving [get, private set]
 是否正在移动 More...
 
bool IsAttacking [get, private set]
 是否正在播放攻击动画 More...
 
bool IsNeedDeadAnimation [get, set]
 是否需要受击后播放死亡动画 More...
 
- Properties inherited from XSSLG.XSIUnitNode
bool IsMoving [get]
 
bool IsAttacking [get]
 是否正在播放攻击动画 More...
 
bool IsNeedDeadAnimation [get, set]
 是否需要受击后播放死亡动画 More...
 
- Properties inherited from XSSLG.XSINode
Vector3 WorldPos [get, set]
 

Private Member Functions

void Awake ()
 

Detailed Description

unit data

Member Function Documentation

◆ AddBoxCollider()

virtual void XSSLG.XSUnitNode.AddBoxCollider ( )
inlinevirtual

Implements XSSLG.XSIUnitNode.

◆ ApplyDamageAnimation()

void XSSLG.XSUnitNode.ApplyDamageAnimation ( int  damage)
inline

受击动画

Implements XSSLG.XSIUnitNode.

◆ AttackAnimation()

void XSSLG.XSUnitNode.AttackAnimation ( )
inline

攻击动画

Implements XSSLG.XSIUnitNode.

◆ Awake()

void XSSLG.XSUnitNode.Awake ( )
inlineprivate

◆ CheckSkillKeyList()

virtual void XSSLG.XSUnitNode.CheckSkillKeyList ( List< string >  skillKeyList)
inlinevirtual

remove wrong key

Parameters
skillKeyList

◆ DieAnimation()

void XSSLG.XSUnitNode.DieAnimation ( )
inline

死亡动画

Implements XSSLG.XSIUnitNode.

◆ GetMaxBounds()

virtual Bounds XSSLG.XSUnitNode.GetMaxBounds ( )
inlineprotectedvirtual

◆ GetUnit()

virtual Unit XSSLG.XSUnitNode.GetUnit ( )
inlinevirtual

Implements XSSLG.XSIUnitNode.

◆ IsNull()

virtual bool XSSLG.XSUnitNode.IsNull ( )
virtual

You cannot use "==" to check gameobject is null, because the gameobject in Unity is override "==", but when the gameobject is converted to the XSITileRoot, it will not use the override "=="

Implements XSSLG.XSINode.

◆ MovementAnimation()

virtual IEnumerator XSSLG.XSUnitNode.MovementAnimation ( List< Vector3 path)
inlinevirtual

Coroutine to deal move

◆ RemoveNode()

virtual void XSSLG.XSUnitNode.RemoveNode ( )
virtual

Implements XSSLG.XSINode.

◆ RotateTo()

void XSSLG.XSUnitNode.RotateTo ( XSTile  tile)

Implements XSSLG.XSIUnitNode.

◆ UpdatePos()

virtual void XSSLG.XSUnitNode.UpdatePos ( )
inlinevirtual

Implements XSSLG.XSIUnitNode.

◆ WalkTo()

void XSSLG.XSUnitNode.WalkTo ( List< Vector3 path)
inline

move to the destination

Parameters
pathmove path

Implements XSSLG.XSIUnitNode.

Member Data Documentation

◆ data

RoleData XSSLG.XSUnitNode.data = new RoleData()
protected

◆ Group

GroupType XSSLG.XSUnitNode.Group = GroupType.Self

单位势力

◆ movementAnimationSpeed

int XSSLG.XSUnitNode.movementAnimationSpeed = 2
protected

Property Documentation

◆ CachedPaths

Dictionary<Vector3, List<Vector3> > XSSLG.XSUnitNode.CachedPaths
getprotected set

◆ Data

RoleData XSSLG.XSUnitNode.Data
getset

◆ IsAttacking

bool XSSLG.XSUnitNode.IsAttacking
getprivate set

是否正在播放攻击动画

◆ IsMoving

bool XSSLG.XSUnitNode.IsMoving
getprivate set

是否正在移动

◆ IsNeedDeadAnimation

bool XSSLG.XSUnitNode.IsNeedDeadAnimation
getset

是否需要受击后播放死亡动画

◆ WorldPos

Vector3 XSSLG.XSUnitNode.WorldPos
getset

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