Bundles! Got all the tileset bundle stuff working and wrote some tests to
inrease my confidence in the use of the word "working". git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@635 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# $Id: manager.properties,v 1.1 2001/11/21 02:42:16 mdb Exp $
|
||||
#
|
||||
# Test resource manager configuration
|
||||
|
||||
# used to test the BundledTileSetRepository
|
||||
resource.set.bundle_test = rsrc/media/tools/tile/bundle.jar
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 155 KiB |
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- test tileset bundle -->
|
||||
<bundle>
|
||||
<uniform>
|
||||
<tileset name="Node Icons">
|
||||
<imagePath>node-icons.png</imagePath>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
<tileCount>8</tileCount>
|
||||
</tileset>
|
||||
</uniform>
|
||||
|
||||
<swissarmy>
|
||||
<tileset name="Fringe">
|
||||
<imagePath>fringe.png</imagePath>
|
||||
<heights>48, 48, 48, 48, 48</heights>
|
||||
<widths>64, 64, 64, 64, 64</widths>
|
||||
<tileCounts>8, 8, 8, 8, 8</tileCounts>
|
||||
</tileset>
|
||||
</swissarmy>
|
||||
|
||||
<object>
|
||||
<tileset name="Building">
|
||||
<imagePath>building.png</imagePath>
|
||||
<heights>293</heights>
|
||||
<widths>224</widths>
|
||||
<tileCounts>4</tileCounts>
|
||||
<offsetPos>2, 2</offsetPos>
|
||||
<gapDist>4, 0</gapDist>
|
||||
<objects>
|
||||
<object tid="0" width="4" height="3"/>
|
||||
<object tid="1" width="3" height="4"/>
|
||||
<object tid="2" width="4" height="3"/>
|
||||
<object tid="3" width="3" height="4"/>
|
||||
</objects>
|
||||
</tileset>
|
||||
</object>
|
||||
</bundle>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- test configuration for the tileset bundler -->
|
||||
<bundler-config>
|
||||
<mapping>
|
||||
<path>bundle/uniform</path>
|
||||
<ruleset>com.threerings.media.tools.tile.xml.UniformTileSetRuleSet</ruleset>
|
||||
</mapping>
|
||||
<mapping>
|
||||
<path>bundle/swissarmy</path>
|
||||
<ruleset>
|
||||
com.threerings.media.tools.tile.xml.SwissArmyTileSetRuleSet
|
||||
</ruleset>
|
||||
</mapping>
|
||||
<!--
|
||||
<mapping>
|
||||
<path>bundle/object</path>
|
||||
<ruleset>com.threerings.media.tools.tile.xml.ObjectTileSetRuleSet</ruleset>
|
||||
</mapping>
|
||||
-->
|
||||
</bundler-config>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 369 B |
Reference in New Issue
Block a user