Skip to content

Adding Colored Rooms

timeracers edited this page Jul 21, 2018 · 1 revision

To add a colored room to your mod just annotate it with @ColoredRoom and it will work assuming these conditions.

  • Has default constructor
  • extends AbstractRoom
  • Sets mapSymbol
  • Sets mapImg
  • Sets mapImgOutline

Example:

@ColoredRoom
public class TestRoom extends AbstractRoom {
    public TestRoom() {
        mapSymbol = "A";
        mapImg = ImageMaster.MAP_NODE_TREASURE;
        mapImgOutline = ImageMaster.MAP_NODE_TREASURE_OUTLINE;
    }

    @Override
    public void onPlayerEntry() {

    }

    @Override
    public AbstractCard.CardRarity getCardRarity(int i) {
        return null;
    }
}

Clone this wiki locally