C# Class Program.DynamicStrategyLoader

Exibir arquivo Open project: NathanTeeuwen/Dominulator Class Usage Examples

Public Methods

Method Description
AllStrategies ( ) : IEnumerable
CreateStrategiesFolderIfNecessary ( ) : bool
DynamicStrategyLoader ( ) : System
DynamicallyLoadFromFile ( ) : Assembly
DynamicallyLoadFromSource ( string code ) : CompiledResult
GetPlayerAction ( object playerActionOrString ) : PlayerAction
GetPlayerAction ( string name ) : PlayerAction
GetPlayerActionFromCode ( string code ) : PlayerAction
GetPlayerSource ( string name ) : string
Load ( ) : bool
LoadAllCustomStrategies ( ) : bool
WriteOutAllEmbeddedStrategies ( ) : bool

Private Methods

Method Description
InitGetCompiler ( ) : void

Method Details

AllStrategies() public method

public AllStrategies ( ) : IEnumerable
return IEnumerable

CreateStrategiesFolderIfNecessary() public static method

public static CreateStrategiesFolderIfNecessary ( ) : bool
return bool

DynamicStrategyLoader() public method

public DynamicStrategyLoader ( ) : System
return System

DynamicallyLoadFromFile() public method

public DynamicallyLoadFromFile ( ) : Assembly
return System.Reflection.Assembly

DynamicallyLoadFromSource() public method

public DynamicallyLoadFromSource ( string code ) : CompiledResult
code string
return CompiledResult

GetPlayerAction() public method

public GetPlayerAction ( object playerActionOrString ) : PlayerAction
playerActionOrString object
return Dominion.Strategy.PlayerAction

GetPlayerAction() public method

public GetPlayerAction ( string name ) : PlayerAction
name string
return Dominion.Strategy.PlayerAction

GetPlayerActionFromCode() public method

public GetPlayerActionFromCode ( string code ) : PlayerAction
code string
return Dominion.Strategy.PlayerAction

GetPlayerSource() public method

public GetPlayerSource ( string name ) : string
name string
return string

Load() public method

public Load ( ) : bool
return bool

LoadAllCustomStrategies() public method

public LoadAllCustomStrategies ( ) : bool
return bool

WriteOutAllEmbeddedStrategies() public static method

public static WriteOutAllEmbeddedStrategies ( ) : bool
return bool