Example #1
0
        public string GetDescription(string id, DescriptionCategory category)
        {
            switch (category)
            {
            case DescriptionCategory.Creature:
                return(Creature.Loader.Get(id).EnglishDescription);
            }

            return("");
        }
Example #2
0
 public List <object> QueryStaticDescription(string topicId, DescriptionCategory category)
 => new List <object>(2)
 {
     GameQueryType.StaticDescription,
     _gameServices.Language.GetDescription(topicId, category)
 };
Example #3
0
 public Task ShowStaticDescriptionDialog(string playerName, string topicId, DescriptionCategory category)
 {
     // TODO: only send to clients watching this player
     return(Clients.All.SendAsync("ReceiveUIRequest", QueryStaticDescription(topicId, category)));
 }