Exemplo n.º 1
0
    private void Setup(HavenLocationEvent templateArg)
    {
        eventId = templateArg.eventId;

        /*potentialLocations = new List<HavenLocation>();
         * foreach (HavenLocation iterLoc in templateArg.potentialLocations)
         * {
         *  potentialLocations.Add(iterLoc);
         * }*/
        locatedSpot = templateArg.locatedSpot;

        associatedCharId = templateArg.associatedCharId;
        associatedWaifu  = templateArg.associatedWaifu;

        associatedDaysOfWeek = new List <DayOfWeek>();
        foreach (DayOfWeek iterDay in templateArg.associatedDaysOfWeek)
        {
            associatedDaysOfWeek.Add(iterDay);
        }

        requiredFlags = new List <string>();
        foreach (string iterFlag in templateArg.requiredFlags)
        {
            requiredFlags.Add(iterFlag);
        }

        requiresAssociatedWaifuSexuallyComfortable = false;

        isRepeatable      = templateArg.isRepeatable;
        focusesOnHcontent = templateArg.focusesOnHcontent;
    }
Exemplo n.º 2
0
    protected void PlayActivitesLocationDialogue(HavenLocation locationArg)
    {
        // if dialogue game coodrinator reference has NOT been setup yet
        if (_dialgGameCoord == null)
        {
            // setup vars that hold reference to component
            InitializeComponentReferences();
        }

        _dialgGameCoord.PlayHavenLocationDialogue(locationArg);
    }
Exemplo n.º 3
0
    public static Sprite LoadBundleAssetHavenLocationActivityHubDialogueBackground(
        HavenLocation locationArg, TimeSlotType timeSlotArg)
    {
        // initialize bundle properties
        string BUNDLE_NAME       = "HavenLocationActivityHubDialogueBackground";
        string ASSET_NAME_PREFIX = $"loc-{locationArg.ToString()}/bg-";

        // get start of name of asset to load
        string loadAssetName = ASSET_NAME_PREFIX + GetTimeDayIdAppend(timeSlotArg);

        // load and return asset
        return(LoadBundleAsset <Sprite>(BUNDLE_NAME, loadAssetName));
    }
Exemplo n.º 4
0
    private void Setup()
    {
        eventId = "0";

        //potentialLocations = new List<HavenLocation>();
        locatedSpot = HavenLocation.None;

        associatedCharId = string.Empty;
        associatedWaifu  = WaifuCharacterType.None;

        associatedDaysOfWeek = new List <DayOfWeek>();

        requiredFlags = new List <string>();
        requiresAssociatedWaifuSexuallyComfortable = false;

        isRepeatable      = true;
        focusesOnHcontent = false;
    }
Exemplo n.º 5
0
 protected void SwitchToHavenLocationMenu(HavenLocation locationArg)
 {
     // switch to haven sub-menu associated with given location
     ((HavenMenuController)menuMaster).SwitchToHavenLocationMenu(locationArg);
 }
Exemplo n.º 6
0
 private void PlayActivitesLocationDialogue(HavenLocation locationArg)
 {
     _uiManager.DialgGameCoordr.PlayHavenLocationDialogue(locationArg);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Switch to haven sub-menu associated with given location.
 /// </summary>
 /// <param name="locationArg"></param>
 public void SwitchToHavenLocationMenu(HavenLocation locationArg)
 {
     SwitchSubMenu(locationArg.ToString());
 }
Exemplo n.º 8
0
 public void ChangeBackgroundL1FromHavenLocationActivityHub(HavenLocation locationArg,
                                                            TimeSlotType timeSlotArg)
 {
     ChangeBackground(AssetRefMethods.LoadBundleAssetHavenLocationActivityHubDialogueBackground(
                          locationArg, timeSlotArg), 1);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Returns whether the given location is already used by an active event.
 /// </summary>
 /// <param name="locationArg"></param>
 /// <returns></returns>
 private bool ActiveEventsUsingLocation(HavenLocation locationArg)
 {
     return(todaysEvents.Exists(iterEvent => iterEvent.locatedSpot == locationArg));
 }