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.
Static Public Member Functions | List of all members
XSSLG.SkillFactory Class Reference

用单例实现的抽象工厂模式去创建对象 More...

Static Public Member Functions

static SkillBase CreateSkill (string name, UnitBase unit)
 工厂模式创建SkillBase More...
 
static SkillBase CreateSkill (SkillData data, UnitBase unit)
 工厂模式创建SkillBase More...
 
static SkillNull CreateSkillNull (UnitBase unit)
 工厂模式创建SkillNull More...
 

Detailed Description

用单例实现的抽象工厂模式去创建对象

Member Function Documentation

◆ CreateSkill() [1/2]

static SkillBase XSSLG.SkillFactory.CreateSkill ( SkillData  data,
UnitBase  unit 
)
inlinestatic

工厂模式创建SkillBase

Parameters
name技能name
unit玩家
Returns

◆ CreateSkill() [2/2]

static SkillBase XSSLG.SkillFactory.CreateSkill ( string  name,
UnitBase  unit 
)
inlinestatic

工厂模式创建SkillBase

Parameters
name技能name
unit玩家
Returns

◆ CreateSkillNull()

static SkillNull XSSLG.SkillFactory.CreateSkillNull ( UnitBase  unit)
static

工厂模式创建SkillNull

Parameters
data技能data
unit触发器触发的对象
Returns

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