Пример #1
0
 private static void MasterEvent(MasterEventInfo me)
 {
     if (me.dialogueEventInfo != null)
     {
         DialogueEvent(me.dialogueEventInfo);
     }
 }
Пример #2
0
    /*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);
        }
    }
Пример #3
0
 private static void MasterEvent(MasterEventInfo me)
 {
     if (me.progressEventInfo != null)
     {
         ProgressEvent(me.progressEventInfo);
     }
 }
Пример #4
0
    /*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);
        }
    }