private static void AddResourcePicture(this IComponentContainer container, ResourceType resourceType, Tile textureDescriptor, TurnCycle turnCycle, Vector2f startPosition, int order) { var offset = new Vector2f(150, 0) * order; var picture = new Picture { Image = new Sprite { Texture = textureDescriptor.Texture, TextureRect = textureDescriptor.Bounds }, Position = startPosition + offset }; var label = new ResourceAmountLabel( resourceType: resourceType, position: startPosition + new Vector2f(70, 0) + offset, turnCycle: turnCycle ); container.Add(picture); container.Add(label); }