C# Class StorySystem.CommonCommands.IfElseCommand

if(@val>0) { createnpc(123); }; or if(@val>0) { createnpc(123); } else { missioncomplete(); };
Inheritance: AbstractStoryCommand
Datei anzeigen Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
Clone ( ) : IStoryCommand

Protected Methods

Method Description
Evaluate ( StoryInstance instance, object iterator, object args ) : void
ExecCommand ( StoryInstance instance, long delta, object iterator, object args ) : bool
Load ( Dsl functionData ) : void
ResetState ( ) : void

Private Methods

Method Description
PrepareElse ( ) : void
PrepareIf ( int ix ) : void

Method Details

Clone() public method

public Clone ( ) : IStoryCommand
return IStoryCommand

Evaluate() protected method

protected Evaluate ( StoryInstance instance, object iterator, object args ) : void
instance StoryInstance
iterator object
args object
return void

ExecCommand() protected method

protected ExecCommand ( StoryInstance instance, long delta, object iterator, object args ) : bool
instance StoryInstance
delta long
iterator object
args object
return bool

Load() protected method

protected Load ( Dsl functionData ) : void
functionData Dsl
return void

ResetState() protected method

protected ResetState ( ) : void
return void