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.UnitFactory Class Reference

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

Static Public Member Functions

static Unit CreateUnit (RoleData data, GroupType group, XSIUnitNode unitNode)
 工厂模式创建 More...
 
static Unit CreateUnitEnemy (RoleData data, XSIUnitNode unitNode)
 工厂模式创建敌人 More...
 
static Unit CreateUnit (RoleData data, XSIUnitNode unitNode)
 工厂模式创建我方 More...
 

Detailed Description

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

Member Function Documentation

◆ CreateUnit() [1/2]

static Unit XSSLG.UnitFactory.CreateUnit ( RoleData  data,
GroupType  group,
XSIUnitNode  unitNode 
)
inlinestatic

工厂模式创建

Parameters
dataroledata

◆ CreateUnit() [2/2]

static Unit XSSLG.UnitFactory.CreateUnit ( RoleData  data,
XSIUnitNode  unitNode 
)
inlinestatic

工厂模式创建我方

Parameters
dataroledata

◆ CreateUnitEnemy()

static Unit XSSLG.UnitFactory.CreateUnitEnemy ( RoleData  data,
XSIUnitNode  unitNode 
)
inlinestatic

工厂模式创建敌人

Parameters
dataroledata

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