C# 클래스 StorySystem.StoryCommandManager

这个类不加锁,约束条件:所有命令注册必须在程序启动时完成。
파일 보기 프로젝트 열기: dreamanlan/CSharpGameFramework 1 사용 예제들

공개 메소드들

메소드 설명
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