C# 클래스 Ink.Runtime.StoryState

All story state information is included in the StoryState class, including global variables, read counts, the pointer to the current point in the story, the call stack (for tunnels, functions, etc), and a few other smaller bits and pieces. You can save the current state using the json serialisation functions ToJson and LoadJson.
파일 보기 프로젝트 열기: inkle/ink 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddError void
CompleteExternalFunctionEvaluation object
Copy StoryState
GoToStart void
MatchRightGlueForLeftGlue Runtime.Glue
PeekEvaluationStack Runtime.Object
PopEvaluationStack List
PopEvaluationStack Runtime.Object
PushEvaluationStack void
PushToOutputStream void
ResetErrors void
ResetOutput void
SetChosenPath void
StartExternalFunctionEvaluation void
StoryState System
TryExitExternalFunctionEvaluation bool
TrySplittingHeadTailWhitespace List

공개 메소드들

메소드 설명
ForceEnd ( ) : void
LoadJson ( string json ) : void

Loads a previously saved state in JSON format.

PushToOutputStreamIndividual ( Runtime obj ) : void
RemoveExistingGlue ( ) : void
ToJson ( ) : string

Exports the current state to json format, in order to save the game.

TrimFromExistingGlue ( ) : void
TrimNewlinesFromOutputStream ( Glue rightGlueToStopAt ) : void
VisitCountAtPathString ( string pathString ) : int

Gets the visit/read count of a particular Container at the given path. For a knot or stitch, that path string will be in the form: knot knot.stitch

비공개 메소드들

메소드 설명
AddError ( string message ) : void
CompleteExternalFunctionEvaluation ( ) : object
Copy ( ) : StoryState
GoToStart ( ) : void
MatchRightGlueForLeftGlue ( Glue leftGlue ) : Runtime.Glue
PeekEvaluationStack ( ) : Runtime.Object
PopEvaluationStack ( int numberOfObjects ) : List
PopEvaluationStack ( ) : Runtime.Object
PushEvaluationStack ( Runtime obj ) : void
PushToOutputStream ( Runtime obj ) : void
ResetErrors ( ) : void
ResetOutput ( ) : void
SetChosenPath ( Path path ) : void
StartExternalFunctionEvaluation ( Container funcContainer ) : void
StoryState ( Story story ) : System
TryExitExternalFunctionEvaluation ( ) : bool
TrySplittingHeadTailWhitespace ( Runtime single ) : List

메소드 상세

ForceEnd() 공개 메소드

public ForceEnd ( ) : void
리턴 void

LoadJson() 공개 메소드

Loads a previously saved state in JSON format.
public LoadJson ( string json ) : void
json string The JSON string to load.
리턴 void

PushToOutputStreamIndividual() 공개 메소드

public PushToOutputStreamIndividual ( Runtime obj ) : void
obj Runtime
리턴 void

RemoveExistingGlue() 공개 메소드

public RemoveExistingGlue ( ) : void
리턴 void

ToJson() 공개 메소드

Exports the current state to json format, in order to save the game.
public ToJson ( ) : string
리턴 string

TrimFromExistingGlue() 공개 메소드

public TrimFromExistingGlue ( ) : void
리턴 void

TrimNewlinesFromOutputStream() 공개 메소드

public TrimNewlinesFromOutputStream ( Glue rightGlueToStopAt ) : void
rightGlueToStopAt Glue
리턴 void

VisitCountAtPathString() 공개 메소드

Gets the visit/read count of a particular Container at the given path. For a knot or stitch, that path string will be in the form: knot knot.stitch
public VisitCountAtPathString ( string pathString ) : int
pathString string The dot-separated path string of /// the specific knot or stitch.
리턴 int