C# Класс StorySystem.StoryCommandManager

这个类不加锁,约束条件:所有命令注册必须在程序启动时完成。
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetFactory ( string type ) : IStoryCommandFactory
StoryCommandManager ( ) : System

Описание методов

CreateCommand() публичный Метод

public CreateCommand ( Dsl commandConfig ) : IStoryCommand
commandConfig Dsl
Результат IStoryCommand

FindFactory() публичный Метод

public FindFactory ( StoryCommandGroupDefine group, string type ) : IStoryCommandFactory
group StoryCommandGroupDefine
type string
Результат IStoryCommandFactory

FindFactory() публичный Метод

public FindFactory ( string type ) : IStoryCommandFactory
type string
Результат IStoryCommandFactory

RegisterCommandFactory() публичный Метод

public RegisterCommandFactory ( StoryCommandGroupDefine group, string type, IStoryCommandFactory factory ) : void
group StoryCommandGroupDefine
type string
factory IStoryCommandFactory
Результат void

RegisterCommandFactory() публичный Метод

public RegisterCommandFactory ( StoryCommandGroupDefine group, string type, IStoryCommandFactory factory, bool replace ) : void
group StoryCommandGroupDefine
type string
factory IStoryCommandFactory
replace bool
Результат void

RegisterCommandFactory() публичный Метод

public RegisterCommandFactory ( string type, IStoryCommandFactory factory ) : void
type string
factory IStoryCommandFactory
Результат void

RegisterCommandFactory() публичный Метод

public RegisterCommandFactory ( string type, IStoryCommandFactory factory, bool replace ) : void
type string
factory IStoryCommandFactory
replace bool
Результат void