C# Class StorySystem.StoryCommandManager

这个类不加锁,约束条件:所有命令注册必须在程序启动时完成。
Afficher le fichier Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Méthodes publiques

Méthode Description
CreateCommand ( Dsl commandConfig ) : IStoryCommand
FindFactory ( StoryCommandGroupDefine group, string type ) : IStoryCommandFactory
FindFactory ( string type ) : IStoryCommandFactory
RegisterCommandFactory ( StoryCommandGroupDefine group, string type, IStoryCommandFactory factory ) : void
RegisterCommandFactory ( StoryCommandGroupDefine group, string type, IStoryCommandFactory factory, bool replace ) : void
RegisterCommandFactory ( string type, IStoryCommandFactory factory ) : void
RegisterCommandFactory ( string type, IStoryCommandFactory factory, bool replace ) : void

Private Methods

Méthode Description
GetFactory ( string type ) : IStoryCommandFactory
StoryCommandManager ( ) : System

Method Details

CreateCommand() public méthode

public CreateCommand ( Dsl commandConfig ) : IStoryCommand
commandConfig Dsl
Résultat IStoryCommand

FindFactory() public méthode

public FindFactory ( StoryCommandGroupDefine group, string type ) : IStoryCommandFactory
group StoryCommandGroupDefine
type string
Résultat IStoryCommandFactory

FindFactory() public méthode

public FindFactory ( string type ) : IStoryCommandFactory
type string
Résultat IStoryCommandFactory

RegisterCommandFactory() public méthode

public RegisterCommandFactory ( StoryCommandGroupDefine group, string type, IStoryCommandFactory factory ) : void
group StoryCommandGroupDefine
type string
factory IStoryCommandFactory
Résultat void

RegisterCommandFactory() public méthode

public RegisterCommandFactory ( StoryCommandGroupDefine group, string type, IStoryCommandFactory factory, bool replace ) : void
group StoryCommandGroupDefine
type string
factory IStoryCommandFactory
replace bool
Résultat void

RegisterCommandFactory() public méthode

public RegisterCommandFactory ( string type, IStoryCommandFactory factory ) : void
type string
factory IStoryCommandFactory
Résultat void

RegisterCommandFactory() public méthode

public RegisterCommandFactory ( string type, IStoryCommandFactory factory, bool replace ) : void
type string
factory IStoryCommandFactory
replace bool
Résultat void