Logo
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Yukar.Engine.EventEngine Class Reference

Separation of event and player management from the MapScene class Here we separate only event management More...

Classes

class  EventTag
 
class  ResourceTag
 

Public Member Functions

void finalizeAllScript ()
 
ScriptRunner AddEvent (MapScene s, Common.Rom.Event inEvent, Common.Rom.RomItem parentRom)
 Add MapCharacter to scene based on event ROM More...
 
bool CheckAllCondition (MapCharacter mapChr, IEnumerable< Common.Rom.Event.Condition > condList)
 Check whether the condition panel is satisfied from all sheets of the event More...
 

Static Public Member Functions

static bool checkCondition (string systemString, string input, int checkType)
 Compare a and b according to operators String version More...
 
static bool checkCondition (double a, double b, Common.Rom.Script.Command.ConditionType conditionType)
 Compare a and b according to operators More...
 

Public Attributes

MapScene owner = null
 

Detailed Description

Separation of event and player management from the MapScene class Here we separate only event management

Member Function Documentation

◆ AddEvent()

ScriptRunner Yukar.Engine.EventEngine.AddEvent ( MapScene  s,
Common.Rom.Event  inEvent,
Common.Rom.RomItem  parentRom 
)

Add MapCharacter to scene based on event ROM

Parameters
s
inEvent
parentRom
Returns

◆ CheckAllCondition()

bool Yukar.Engine.EventEngine.CheckAllCondition ( MapCharacter  mapChr,
IEnumerable< Common.Rom.Event.Condition >  condList 
)

Check whether the condition panel is satisfied from all sheets of the event

Parameters
mapChr
condList
Returns

◆ checkCondition() [1/2]

static bool Yukar.Engine.EventEngine.checkCondition ( double  a,
double  b,
Common.Rom.Script.Command.ConditionType  conditionType 
)
static

Compare a and b according to operators

Parameters
a
b
conditionType
Returns

◆ checkCondition() [2/2]

static bool Yukar.Engine.EventEngine.checkCondition ( string  systemString,
string  input,
int  checkType 
)
static

Compare a and b according to operators String version

Parameters
systemStringvariable value
inputcomparison string
checkTypeComparison method (in order from 0: equal, starts with, ends with, includes)
Returns

◆ finalizeAllScript()

void Yukar.Engine.EventEngine.finalizeAllScript ( )

Member Data Documentation

◆ owner

MapScene Yukar.Engine.EventEngine.owner = null