Package net.mtrop.doom.texture
Class Switches.Entry
java.lang.Object
net.mtrop.doom.texture.Switches.Entry
- All Implemented Interfaces:
BinaryObject
- Enclosing class:
- Switches
Entry for Switches.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.mtrop.doom.object.BinaryObject
BinaryObject.InlineScanner<BO extends BinaryObject>, BinaryObject.Reflect, BinaryObject.Scanner<BO extends BinaryObject>, BinaryObject.Shared, BinaryObject.Transformer<BO extends BinaryObject>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetGame()
void
readBytes
(InputStream in) Reads from anInputStream
and sets this object's fields.toString()
void
writeBytes
(OutputStream out) Writes this object to anOutputStream
.
-
Field Details
-
LENGTH
public static final int LENGTHLength of a single entry in bytes.- See Also:
-
offName
The "off" texture name. -
onName
The "on" texture name. -
game
The game that this is used for.
-
-
Method Details
-
getOffName
- Returns:
- the switch "off" position texture.
-
getOnName
- Returns:
- the switch "on" position texture.
-
getGame
- Returns:
- the active game type of the switch.
-
readBytes
Description copied from interface:BinaryObject
Reads from anInputStream
and sets this object's fields. Only reads the amount of bytes that it takes to read a single instance of the object. Note that not every object may have a consistent length!- Specified by:
readBytes
in interfaceBinaryObject
- Parameters:
in
- theInputStream
to read from.- Throws:
IOException
- if a read error occurs.
-
writeBytes
Description copied from interface:BinaryObject
Writes this object to anOutputStream
.- Specified by:
writeBytes
in interfaceBinaryObject
- Parameters:
out
- theOutputStream
to write to.- Throws:
IOException
- if a write error occurs.
-
toString
-