Revamped bundle stuff to put all actions and classes in one top-level

metadata bundle and just the components in separate component bundles.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1058 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-19 22:10:30 +00:00
parent ade0080446
commit cbcf5d217e
6 changed files with 33 additions and 47 deletions
+10 -13
View File
@@ -81,22 +81,19 @@
<taskdef name="cbundle"
classname="com.threerings.cast.bundle.tools.ComponentBundlerTask"/>
<!-- build the pirate metadata and component bundles -->
<metabundle actiondef="${cbundle.dir}/pirate/actions.xml"
classdef="${cbundle.dir}/pirate/classes.xml"
target="${cbundle.dir}/pirate/metadata.jar"/>
<!-- build the metadata bundles -->
<metabundle actiondef="${cbundle.dir}/actions.xml"
classdef="${cbundle.dir}/classes.xml"
target="${cbundle.dir}/metadata.jar"/>
<!-- build the component bundles -->
<cbundle target="${cbundle.dir}/pirate/components.jar"
mapfile="${cbundle.dir}/pirate/components.map">
mapfile="${cbundle.dir}/components.map">
<fileset dir="${cbundle.dir}/pirate" includes="**/*.png"/>
</cbundle>
<!-- build the ship metadata and component bundles -->
<metabundle actiondef="${cbundle.dir}/ship/actions.xml"
classdef="${cbundle.dir}/ship/classes.xml"
target="${cbundle.dir}/ship/metadata.jar"/>
<cbundle target="${cbundle.dir}/ship/components.jar"
mapfile="${cbundle.dir}/ship/components.map">
<fileset dir="${cbundle.dir}/ship" includes="**/*.png"/>
<cbundle target="${cbundle.dir}/vessel/components.jar"
mapfile="${cbundle.dir}/components.map">
<fileset dir="${cbundle.dir}/vessel" includes="**/*.png"/>
</cbundle>
</target>
+13 -1
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" standalone="yes"?>
<!-- $Id: actions.xml,v 1.3 2002/02/14 01:11:11 mdb Exp $ -->
<!-- $Id: actions.xml,v 1.4 2002/02/19 22:10:30 mdb Exp $ -->
<!-- test component action definitions -->
<actions>
@@ -26,4 +26,16 @@
<gapSize>0, 0</gapSize>
</tileset>
</action>
<action name="sailing">
<framesPerSecond>8</framesPerSecond>
<origin>22,46</origin>
<tileset>
<widths>44, 44, 44, 44, 44, 44, 44, 44</widths>
<heights>46, 46, 46, 46, 46, 46, 46, 46</heights>
<tileCounts>1, 1, 1, 1, 1, 1, 1, 1</tileCounts>
<offsetPos>0, 0</offsetPos>
<gapSize>0, 0</gapSize>
</tileset>
</action>
</actions>
+5 -1
View File
@@ -1,8 +1,9 @@
<?xml version="1.0" standalone="yes"?>
<!-- $Id: classes.xml,v 1.3 2002/02/14 01:11:11 mdb Exp $ -->
<!-- $Id: classes.xml,v 1.4 2002/02/19 22:10:30 mdb Exp $ -->
<!-- test component class definitions -->
<classes>
<!-- character component classes -->
<class name="legs" renderPriority="1"/>
<class name="feet" renderPriority="0"/>
<class name="hands" renderPriority="2"/>
@@ -10,4 +11,7 @@
<class name="head" renderPriority="4"/>
<class name="hair" renderPriority="5"/>
<class name="hat" renderPriority="6"/>
<!-- vessel classes -->
<class name="navsail" renderPriority="0"/>
</classes>
@@ -1,17 +0,0 @@
<?xml version="1.0" standalone="yes"?>
<!-- $Id: actions.xml,v 1.1 2002/02/19 20:01:21 mdb Exp $ -->
<!-- test ship action definitions -->
<actions>
<action name="standing">
<framesPerSecond>8</framesPerSecond>
<origin>22,46</origin>
<tileset>
<widths>44, 44, 44, 44, 44, 44, 44, 44</widths>
<heights>46, 46, 46, 46, 46, 46, 46, 46</heights>
<tileCounts>1, 1, 1, 1, 1, 1, 1, 1</tileCounts>
<offsetPos>0, 0</offsetPos>
<gapSize>0, 0</gapSize>
</tileset>
</action>
</actions>
@@ -1,7 +0,0 @@
<?xml version="1.0" standalone="yes"?>
<!-- $Id: classes.xml,v 1.2 2002/02/19 20:17:36 mdb Exp $ -->
<!-- test vessel class definitions -->
<classes>
<class name="navsail" renderPriority="0"/>
</classes>
@@ -1,5 +1,5 @@
#
# $Id: manager.properties,v 1.8 2002/02/19 20:00:32 mdb Exp $
# $Id: manager.properties,v 1.9 2002/02/19 22:10:30 mdb Exp $
#
# Test resource manager configuration
@@ -7,10 +7,7 @@
resource.set.tilesets = bundles/tiles/ground/bundle.jar:\
bundles/tiles/objects/bundle.jar
# configure the character BundledComponentRepository
resource.set.components = bundles/components/pirate/metadata.jar:\
bundles/components/pirate/components.jar
# configure the ship BundledComponentRepository
resource.set.ships = bundles/components/ship/metadata.jar:\
bundles/components/ship/components.jar
# configure the BundledComponentRepository
resource.set.components = bundles/components/metadata.jar:\
bundles/components/pirate/components.jar: \
bundles/components/vessel/components.jar