You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
619 B
36 lines
619 B
package mightypork.rogue.world.tile.tiles;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import mightypork.rogue.world.tile.TileRenderer;
|
|
import mightypork.util.files.ion.IonInput;
|
|
import mightypork.util.files.ion.IonOutput;
|
|
|
|
|
|
public class LockedDoorTile extends DoorTile {
|
|
|
|
public boolean locked = true;
|
|
|
|
|
|
public LockedDoorTile(int id, TileRenderer renderer)
|
|
{
|
|
super(id, renderer);
|
|
}
|
|
|
|
|
|
@Override
|
|
public void load(IonInput in) throws IOException
|
|
{
|
|
super.load(in);
|
|
locked = in.readBoolean();
|
|
}
|
|
|
|
|
|
@Override
|
|
public void save(IonOutput out) throws IOException
|
|
{
|
|
super.save(out);
|
|
out.writeBoolean(locked);
|
|
}
|
|
}
|
|
|