C# Class SkillSystem.SkillTrigerManager

这个类不加锁,约束条件:所有触发器的注册必须在程序启动时完成。
Mostra file Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
CreateTriger ( Dsl trigerConfig, SkillInstance instance ) : ISkillTriger
RegisterTrigerFactory ( string type, ISkillTrigerFactory factory ) : void

Private Methods

Method Description
GetFactory ( string type ) : ISkillTrigerFactory
SkillTrigerManager ( ) : System

Method Details

CreateTriger() public method

public CreateTriger ( Dsl trigerConfig, SkillInstance instance ) : ISkillTriger
trigerConfig Dsl
instance SkillInstance
return ISkillTriger

RegisterTrigerFactory() public method

public RegisterTrigerFactory ( string type, ISkillTrigerFactory factory ) : void
type string
factory ISkillTrigerFactory
return void