Beispiel #1
0
 public static string GetDespawnString(FortLureInfo lureInfo)
 {
     var despawnSeconds = (lureInfo.LureExpiresTimestampMs - DateTime.UtcNow.ToUnixTime()) / 1000;
     var despawnMinutes = despawnSeconds / 60;
     despawnSeconds = despawnSeconds % 60;
     return $", despawn in {despawnMinutes} minutes { despawnSeconds} seconds";
 }
Beispiel #2
0
        public void Update(IMapPokemon update)
        {
            var lure = (LuredPokemon)update;

            _lureInfo   = lure._lureInfo;
            Geoposition = lure.Geoposition;

            OnPropertyChanged(nameof(PokemonId));
            OnPropertyChanged(nameof(EncounterId));
            OnPropertyChanged(nameof(SpawnpointId));
            OnPropertyChanged(nameof(Geoposition));
        }
Beispiel #3
0
 public FortCacheItem(FortData fort)
 {
     ActiveFortModifier          = fort.ActiveFortModifier;
     CooldownCompleteTimestampMS = fort.CooldownCompleteTimestampMs;
     Enabled                 = fort.Enabled;
     GuardPokemonCp          = fort.GuardPokemonCp;
     GymPoints               = fort.GymPoints;
     Id                      = fort.Id;
     GuardPokemonId          = fort.GuardPokemonId;
     IsInBattle              = fort.IsInBattle;
     LastModifiedTimestampMs = fort.LastModifiedTimestampMs;
     Latitude                = fort.Latitude;
     Longitude               = fort.Longitude;
     LureInfo                = fort.LureInfo;
     Type                    = fort.Type;
     Sponsor                 = fort.Sponsor;
     BaseFortData            = fort;
 }
Beispiel #4
0
 public LuredPokemon(FortLureInfo lureInfo, double lat, double lng)
 {
     _lureInfo   = lureInfo;
     Geoposition = new Geopoint(GetLocation(lat, lng, 1));
 }