-
Notifications
You must be signed in to change notification settings - Fork 0
Content PAcKages
zenith391 edited this page Jan 3, 2019
·
1 revision
Content Package is a very simple format made for PowerHigh. It stores data findable with his entry name (for example, "packName" or "icon"). Some objects has been optimized by this format for writing, like Texture. Here is the format explained:
Compression Type (1 byte) | Num of entries | Entries
and an entry is made of this:
Type (1 byte) | Data
By default, data is written by Java Object steams format. But if the object is recognized, like for Texture, it will be wrote in a custom format specific to the type, for example, for a texture, it writes width and height. And then it writes the pixels in XY order. (all data in pixel row 1 is written at first, then of pixel row 2, etc.)