Beispiel #1
0
 public void MoveToMap(Spacemap map, Vector pos, int vwid)
 {
     Storage.Clean();
     State.Reset();
     VirtualWorldId = vwid;
     Spacemap       = map;
     Position       = pos;
     Refresh();
     Spacemap.Entities.TryAdd(Id, this);
 }
Beispiel #2
0
 private void InitializeClasses()
 {
     Equipment       = new Equipment(this);
     Statistics      = World.DatabaseManager.LoadStatistics(this);
     Information     = new Information(this);
     State           = new State(this);
     Skills          = World.DatabaseManager.LoadSkilltree(this);
     Storage         = new Storage(this);
     Log             = new PlayerLog(SessionId);
     Boosters        = new List <Booster>();
     Abilities       = Hangar.Ship.Abilities(this);
     Settings        = new Settings(this);
     CompletedQuests = World.DatabaseManager.LoadQuests(this);
 }
Beispiel #3
0
        public void AssembleEnemyWarn()
        {
            if (GetGameSession() == null)
            {
                return;
            }
            if (Spacemap != null && State.IsOnHomeMap())
            {
                var count = Spacemap.Entities.Count(
                    x => x.Value.FactionId != FactionId && x.Value.FactionId != Faction.NONE);
                if (EnemyWarningLevel != count)
                {
                    //TODO: fix
                    //Packet.Builder.LegacyModule(GetGameSession(),
                    //    "0|n|w|" + count); //enemy warning
                }

                EnemyWarningLevel = count;
            }
        }