Esempio n. 1
0
 private void CurrentScenes(String SceneID)
 {
     game.data.CurrentScene    = SceneID;
     game.data.CurrentLocation = null;
     foreach (KeyValuePair <string, object> kvp in gameData.location)
     {
         if (((ILocation)kvp.Value).Scene == SceneID)
         {
             game.data.CurrentLocation = (ILocation)kvp.Value;
             if (game.data.CurrentLocation.GetType() == typeof(City))
             {
                 game.data.CurrentLocationCity = (ICity)game.data.CurrentLocation;
             }
             break;
         }
     }
     if (game.data.CurrentLocationCity == null)
     {
         game.data.CurrentLocationCity = (ICity)game.data.location.gorodok;
     }
     if (game.data.CurrentLocationCity.weather == null)
     {
         game.data.CurrentLocationCity.weather = DataLocations.CreateWeather(game.data.time, (ICity)game.data.CurrentLocationCity);
     }
 }
        public MatchingResponse MatchWithSearchVector(SearchVector Search)
        {
            MatchingResponse Output = new MatchingResponse();

            Output.Service   = this;
            Output.ServiceId = Id;
            if (Search.models != null && Search.models.Value != null && Search.models.Value.Count > 0 && Search.models.Priority > 0)
            {
                if (CloudServiceModelId.HasValue && Search.models.Value.Contains(CloudServiceModelId.Value))
                {
                    Output.pointsmodels = Search.models.Priority;
                }
            }
            if (Search.providers != null && Search.providers.Value != null && Search.providers.Value.Count > 0 && Search.providers.Priority > 0)
            {
                if (ProviderId.HasValue && Search.providers.Value.Contains(ProviderId.Value))
                {
                    Output.pointsproviders = Search.providers.Priority;
                }
            }
            if (Search.deploymentinfos != null && Search.deploymentinfos.Value != null && Search.deploymentinfos.Value.Count > 0 && Search.deploymentinfos.Priority > 0)
            {
                if (DeploymentInfoId.HasValue && Search.deploymentinfos.Value.Contains(DeploymentInfoId.Value))
                {
                    Output.pointsdeploymentinfos = Search.deploymentinfos.Priority;
                }
            }
            if (Search.datalocations != null && Search.datalocations.Value != null && Search.datalocations.Value.Count > 0 && Search.datalocations.Priority > 0)
            {
                if (DataLocations.Select(x => x.Id).Intersect(Search.datalocations.Value).Any())
                {
                    Output.pointsdatalocations = Search.datalocations.Priority;
                }
            }
            if (Search.certificates != null && Search.certificates.Value != null && Search.certificates.Value.Count > 0 && Search.certificates.Priority > 0)
            {
                if (Certificates.Select(x => x.Id).Intersect(Search.certificates.Value).Any())
                {
                    Output.pointscertificates = Search.certificates.Priority;
                }
            }
            if (Search.features != null && Search.features.Value != null && Search.features.Value.Count > 0 && Search.features.Priority > 0)
            {
                if (Features.Select(x => x.Id).Intersect(Search.features.Value).Any())
                {
                    Output.pointsfeatures = Search.features.Priority;
                }
            }
            return(Output);
        }
Esempio n. 3
0
 public void LoadDynamicData()
 {
     this.stuff             = DataStuff.GetStuff();
     this.location          = DataLocations.GetLocations();
     this.actor             = DataActors.GetActors();
     this.lessons.Lesson    = DataLesson.GetLessons();
     this.skills.Skill      = DataSkill.GetSkills();
     this.variables         = new Dictionary <String, dynamic>();
     this.variables_timeout = new Dictionary <String, DateTime>();
     this.player            = DataPlayer.CreatePlayer(this.stuff, lessons, skills);
     this.time = new GameTime()
     {
         time = new DateTime(2011, 9, 1, 7, 0, 0)
     };
     Actor.CurrentTime = time;
 }
Esempio n. 4
0
        private void InternalDayChanged(int days)
        {
            for (int i = 0; i < days; i++)
            {
                player.EyeBrows--;
                if (CurrentLocationCity != null)
                {
                    CurrentLocationCity.weather = DataLocations.CreateWeather(time, CurrentLocationCity);
                }
                player.PussyShaveСount++;
                player.LegsShaveСount++;
                if (player.PussyShaveStyle == 0 && player.PussyShaveСount == 3)
                {
                    player.PussyShave = 5;
                }
                if (player.PussyShaveStyle == 0 && player.PussyShaveСount >= 5)
                {
                    player.PussyShave = 0; player.PussyShaveStyle = 0;
                }
                if (player.PussyShaveStyle == 1 && player.PussyShaveСount == 4)
                {
                    player.PussyShave = 6;
                }
                if (player.PussyShaveStyle == 1 && player.PussyShaveСount >= 7)
                {
                    player.PussyShave = 0; player.PussyShaveStyle = 0;
                }

                if (player.LegsShaveStyle == 0 && player.LegsShaveСount == 3)
                {
                    player.LegsShave = 3;
                }
                if (player.LegsShaveStyle == 0 && player.LegsShaveСount >= 5)
                {
                    player.LegsShave = 0; player.LegsShaveStyle = 0;
                }
                if (player.LegsShaveStyle == 1 && player.LegsShaveСount == 4)
                {
                    player.LegsShave = 4;
                }
                if (player.LegsShaveStyle == 1 && player.LegsShaveСount >= 7)
                {
                    player.LegsShave = 0; player.LegsShaveStyle = 0;
                }

                if (player.HandsShaveStyle == 0 && player.HandsShaveСount == 3)
                {
                    player.HandsShave = 3;
                }
                if (player.HandsShaveStyle == 0 && player.HandsShaveСount >= 5)
                {
                    player.HandsShave = 0; player.HandsShaveStyle = 0;
                }
                if (player.HandsShaveStyle == 1 && player.HandsShaveСount == 4)
                {
                    player.HandsShave = 4;
                }
                if (player.HandsShaveStyle == 1 && player.HandsShaveСount >= 7)
                {
                    player.HandsShave = 0; player.HandsShaveStyle = 0;
                }

                foreach (KeyValuePair <String, Object> ac in actor)
                {
                    var o = (IActor)ac.Value;
                    if (o.SexAddiction > o.Relationship && o.SexAddiction > 0)
                    {
                        o.SexAddiction--;
                    }
                }
            }
        }