C# Class ProblemPart, thinksy_unity_plugin

ファイルを表示 Open project: senseix/thinksy_unity_plugin Class Usage Examples

Public Methods

Method Description
CreateProblemPart ( Senseix newAtom ) : ProblemPart,
CreateProblemPart ( int number ) : ProblemPart,
CreateProblemPart ( string text ) : ProblemPart,
GetAtom ( ) : Senseix.Message.Atom.Atom
GetInteger ( ) : int
GetSprite ( ) : Sprite
GetString ( ) : string
GetUniqueID ( ) : string

This is a uuid for this problem part. But, most likely, from your perspective, it's just a meaningless string.

HasInteger ( ) : bool
HasSprite ( ) : bool
HasString ( ) : bool
IsMultipleChoiceLetter ( ) : bool

Determines whether this instance is multiple choice letter.

ProblemPart ( Senseix newAtom ) : System
ProblemPart ( string textContent ) : System

This will build a text ProblemPart. Hot tip: numbers are actually text ProblemParts. If the text happens to be numbers, it will be treated as such.

ProblemPart ( string filename, bool isPretty ) : System

This will build an image ProblemPart. The filename references only Sprites from resources.

TimesRepeated ( ) : int

Method Details

CreateProblemPart() public static method

public static CreateProblemPart ( Senseix newAtom ) : ProblemPart,
newAtom Senseix
return ProblemPart,

CreateProblemPart() public static method

public static CreateProblemPart ( int number ) : ProblemPart,
number int
return ProblemPart,

CreateProblemPart() public static method

public static CreateProblemPart ( string text ) : ProblemPart,
text string
return ProblemPart,

GetAtom() public method

public GetAtom ( ) : Senseix.Message.Atom.Atom
return Senseix.Message.Atom.Atom

GetInteger() public method

public GetInteger ( ) : int
return int

GetSprite() public method

public GetSprite ( ) : Sprite
return Sprite

GetString() public method

public GetString ( ) : string
return string

GetUniqueID() public method

This is a uuid for this problem part. But, most likely, from your perspective, it's just a meaningless string.
public GetUniqueID ( ) : string
return string

HasInteger() public method

public HasInteger ( ) : bool
return bool

HasSprite() public method

public HasSprite ( ) : bool
return bool

HasString() public method

public HasString ( ) : bool
return bool

IsMultipleChoiceLetter() public method

Determines whether this instance is multiple choice letter.
public IsMultipleChoiceLetter ( ) : bool
return bool

ProblemPart() public method

public ProblemPart ( Senseix newAtom ) : System
newAtom Senseix
return System

ProblemPart() public method

This will build a text ProblemPart. Hot tip: numbers are actually text ProblemParts. If the text happens to be numbers, it will be treated as such.
public ProblemPart ( string textContent ) : System
textContent string
return System

ProblemPart() public method

This will build an image ProblemPart. The filename references only Sprites from resources.
public ProblemPart ( string filename, bool isPretty ) : System
filename string
isPretty bool
return System

TimesRepeated() public method

public TimesRepeated ( ) : int
return int