public GoldenChickenItem(long id, DumbGraphicsRegistry.ResourceDefinition texture) : base(0f, 0f, texture.GetRenderable().Item1, texture.GetRenderable().Item2) { Category = "Example Item"; Stackable = true; Name = "Golden Chicken Statue"; Description = "Fancy Example Item"; NewInventoryItemType = (InventoryItemType)id; texture.OnGraphicsReload += OnGraphicsReload; }
public GoldenChickenMagnument( long id, DumbGraphicsRegistry.ResourceDefinition textureResource ) : base("Golden Chicken Magnument", TileData, id) { _cutOutBounds = true; Description = "Indicates your domain."; _texture = textureResource.GetRenderable().Item1; _currentBounds = textureResource.GetRenderable().Item2; }
private void OnGraphicsReload(DumbGraphicsRegistry.ResourceDefinition definition) { this.Texture = definition.GetRenderable().Item1; this.SpriteBounds = definition.GetRenderable().Item2; }