public SymbolsImage GetWorldImage(IImagesStorage storage) { var body = storage.GetImage(configuration.Image); var directionImageName = GetWorldImageName(); var directionImage = storage.GetImage(directionImageName); return(SymbolsImage.Combine(body, directionImage)); }
private SymbolsImage GetEquippedImage(ItemMaterial material, IArmorPieceConfiguration config) { if (string.IsNullOrEmpty(config.EquippedImage)) { return(null); } var image = imagesStorage.GetImage(config.EquippedImage); return(ItemRecolorHelper.RecolorItemImage(image, material)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { if (energyLeft >= HighEnergy) { return(storage.GetImage(ImageHighEnergy)); } if (energyLeft >= MediumEnergy) { return(storage.GetImage(ImageMediumEnergy)); } return(storage.GetImage(ImageLowEnergy)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { var templateImage = storage.GetImage("ItemsOnGround_Potion"); var palette = GetPotionPalette(); return(SymbolsImage.Recolor(templateImage, palette)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { if (Volume >= Configuration.MaxVolumeBeforeSpread) { return(storage.GetImage(ImageBig)); } var halfSpread = Configuration.MaxVolumeBeforeSpread / 2; if (Volume >= halfSpread) { return(storage.GetImage(ImageMedium)); } return(storage.GetImage(ImageSmall)); }
public SymbolsImage GetInventoryImage(IImagesStorage storage) { var imageTemplateName = GetInventoryImageTemplateName(); var templateImage = storage.GetImage(imageTemplateName); var palette = GetPotionPalette(); return(SymbolsImage.Recolor(templateImage, palette)); }
private static IItem CreateMeat(IImagesStorage storage) { return(new FoodItem(new FoodItemConfiguration { Key = "food_meat", Name = "Meat", HungerDecrease = 7, Rareness = ItemRareness.Common, Weight = 500, InventoryImage = storage.GetImage("Food_Meat"), WorldImage = storage.GetImage("ItemsOnGround_Food_Meat"), Description = new[] { "A big piece of meat. It smells good." } })); }
private static IItem CreateApple(IImagesStorage storage) { return(new FoodItem(new FoodItemConfiguration { Key = "food_apple", Name = "Apple", HungerDecrease = 3, Rareness = ItemRareness.Common, Weight = 200, InventoryImage = storage.GetImage("Food_Apple"), WorldImage = storage.GetImage("ItemsOnGround_Food_Apple"), Description = new [] { "A sweet red apple. Juicy and tasty." } })); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { if (Closed) { if (HasConnectedTile(0, -1) && HasConnectedTile(0, 1)) { return(storage.GetImage(ImageClosedVertical)); } return(storage.GetImage(ImageClosedHorizontal)); } if (HasConnectedTile(0, -1) && HasConnectedTile(0, 1)) { return(storage.GetImage(ImageOpenedVertical)); } return(storage.GetImage(ImageOpenedHorizontal)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { if (!HasConnectedTile(0, 1) && !HasConnectedTile(1, 0)) { return(animationsManager.GetImage(storage, ImageBottomRight)); } if (!HasConnectedTile(0, 1)) { return(animationsManager.GetImage(storage, ImageBottom)); } if (!HasConnectedTile(1, 0)) { return(animationsManager.GetImage(storage, ImageRight)); } if (!HasConnectedTile(1, 1)) { return(storage.GetImage(ImageCorner)); } return(storage.GetImage(ImageNormal)); }
private SymbolsImage GetMaterialColoredImage(string imageName, ItemMaterial material) { var image = imagesStorage.GetImage(imageName); return(ItemRecolorHelper.RecolorItemImage(image, material)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { return(storage.GetImage(ImageName)); }
public SymbolsImage GetInventoryImage(IImagesStorage storage) { return(storage.GetImage(InventoryImageName)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { var imageName = GetWorldImageName(); return(storage.GetImage(imageName)); }
public override SymbolsImage GetEffectImage(int width, int height, IImagesStorage imagesStorage) { return(imagesStorage.GetImage(ImageName)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { return(storage.GetImage("ItemsOnGround_Resource_Wood")); }
public override SymbolsImage GetWorldImage(IImagesStorage storage) { return(RecolorImage(storage.GetImage("ItemsOnGround_Weapon_Mace"))); }
public override SymbolsImage GetInventoryImage(IImagesStorage storage) { return(storage.GetImage("Weapon_BanHammer")); }
public override SymbolsImage GetWorldImage(IImagesStorage storage) { return(storage.GetImage(ImageWorld)); }
private SymbolsImage ApplyStatusImage(SymbolsImage initialImage, string statusImageName) { var statusImage = imagesStorage.GetImage(statusImageName); return(SymbolsImage.Combine(initialImage, statusImage)); }
public SymbolsImage GetWorldImage(IImagesStorage storage) { return(storage.GetImage("Decoratives_Stones_Small")); }
protected override SymbolsImage GetRightEquippedImage(IImagesStorage storage) { return(RecolorImage(storage.GetImage("ItemOnPlayer_Weapon_Right_Mace"))); }
public override SymbolsImage GetInventoryImage(IImagesStorage storage) { return(storage.GetImage(inventoryImageName)); }
public SymbolsImage GetInventoryImage(IImagesStorage storage) { return(storage.GetImage("Item_Resource_Stone")); }
private SymbolsImage GetWorldImage(Color mainImageColor) { var imageInit = imagesStorage.GetImage(WorldImageName); return(ItemRecolorHelper.RecolorSpellBookGroundImage(imageInit, mainImageColor)); }