Exemple #1
0
        public ManifestItemDefinition GetItemDefinition(uint itemHash)
        {
            int    itemId      = ConvertHashToTableId(itemHash);
            string commandText = $"SELECT json FROM DestinyInventoryItemDefinition WHERE id = {itemId}";
            string json        = databaseAccessor.ExecuteCommand(commandText, config["Emissary:ManifestPath"]);
            ManifestItemDefinition itemDefinition = JsonConvert.DeserializeObject <ManifestItemDefinition>(json);

            return(itemDefinition);
        }