private static void MasterEvent(MasterEventInfo me) { if (me.dialogueEventInfo != null) { DialogueEvent(me.dialogueEventInfo); } }
/*public static LocationSystem GetLocationSystem() * { * return _locationSystem ?? (_locationSystem = new LocationSystem()); * }*/ private static void MasterEvent(MasterEventInfo me) { if (me.locationEventInfo != null) { if (me.dialogueEventInfo != null) { if (me.dialogueEventInfo.eventType != DIALOGUE_EVENT_TYPE.EndDialogue) { Show(me.locationEventInfo); return; } } if (me.entityEventInfo != null) { if (me.entityEventInfo.entityEventType != ENTITY_EVENT_TYPE.ENTITY_STOP) { Show(me.locationEventInfo); return; } } if (me.progressEventInfo && !me.progressEventInfo.done && me.progressEventInfo.progressEventType == PROGRESS_EVENT_TYPE.ADD_TO_LOCATION) { return; } LocationEvent(me.locationEventInfo); } }
private static void MasterEvent(MasterEventInfo me) { if (me.progressEventInfo != null) { ProgressEvent(me.progressEventInfo); } }
/*public static EntitySystem GetEntitySystem() * { * return _entitySystem ?? (_entitySystem = new EntitySystem()); * }*/ private static void MasterEvent(MasterEventInfo me) { if (me.dialogueEventInfo != null && me.entityEventInfo != null) //Special Case if Dialogue is also sent { EntityEvent(me.entityEventInfo); } else if (me.entityEventInfo != null) { EntityEvent(me.entityEventInfo); } }