java.lang.Object
dev.prozilla.pine.core.entity.prefab.Prefab
dev.prozilla.pine.core.entity.prefab.sprite.GridPrefab

@Components({GridGroup.class,Transform.class}) public class GridPrefab extends Prefab
Prefab for 2D tile grids.
  • Field Details

    • size

      protected int size
  • Constructor Details

    • GridPrefab

      public GridPrefab(int size)
  • Method Details

    • apply

      protected void apply(Entity entity)
      Description copied from class: Prefab
      Adds this prefab's predefined components to a given entity and copies values from this prefab.
      Specified by:
      apply in class Prefab