//============================================================================= //Player Event Delegates //============================================================================= //Spawns the player and adds them to the active player list private void Player_PlayerLoginEvent(Player player, string action) { string[] command = action.Split(new char[] { ' ' }); //Add player to active player list player.name = command[1]; PlayerList.Add(player.PlayerID, player); Console.WriteLine("Player Logged in: " + player.name); player.SendSysMsg("You have logged in as " + player.name); //Spawn player character Character character = new Character(player); Galaxy.GetSector(spawnSector).SpawnSpaceObject(character, new Vector3(0, -1, 4)); player.SendInfoMsg("You are entering sector " + character.Sector.ToString()); }