void PlayerEnterBase() { //fetch news articles List <NewsArticle> news = new List <NewsArticle>(); foreach (var x in Game.GameData.Ini.News.NewsItems.Where(NewsFind)) { news.Add(new NewsArticle() { Icon = x.Icon, Category = x.Category, Headline = x.Headline, Logo = x.Logo, Text = x.Text }); } //load base BaseData = Game.GameData.GetBase(Base); //update Character.UpdatePosition(Base, System, Position); //send to player lock (rtcs) { rpcClient.BaseEnter(Base, rtcs.ToArray(), news.ToArray(), BaseData.SoldGoods.Select(x => new SoldGood() { GoodCRC = CrcTool.FLModelCrc(x.Good.Ini.Nickname), Price = x.Price, Rank = x.Rank, Rep = x.Rep, ForSale = x.ForSale }).ToArray(), GetSoldShips().ToArray()); } }
public void OnSPSave() { Character?.UpdatePosition(Base, System, Position); }