Provide the colorization index when asking for an object colorization.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2572 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ObjectTileSet.java,v 1.15 2003/04/01 02:16:28 mdb Exp $
|
// $Id: ObjectTileSet.java,v 1.16 2003/05/13 02:16:21 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.tile;
|
package com.threerings.media.tile;
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ public class ObjectTileSet extends SwissArmyTileSet
|
|||||||
if (rizer != null && _zations != null) {
|
if (rizer != null && _zations != null) {
|
||||||
zations = new Colorization[_zations.length];
|
zations = new Colorization[_zations.length];
|
||||||
for (int ii = 0; ii < _zations.length; ii++) {
|
for (int ii = 0; ii < _zations.length; ii++) {
|
||||||
zations[ii] = rizer.getColorization(_zations[ii]);
|
zations[ii] = rizer.getColorization(ii, _zations[ii]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return zations;
|
return zations;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TileSet.java,v 1.51 2003/05/12 02:03:53 mdb Exp $
|
// $Id: TileSet.java,v 1.52 2003/05/13 02:16:21 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.tile;
|
package com.threerings.media.tile;
|
||||||
|
|
||||||
@@ -44,8 +44,11 @@ public abstract class TileSet
|
|||||||
/**
|
/**
|
||||||
* Returns the colorization to be used for the specified named
|
* Returns the colorization to be used for the specified named
|
||||||
* colorization class.
|
* colorization class.
|
||||||
|
*
|
||||||
|
* @param index the index of the colorization being requested in
|
||||||
|
* the tileset's colorization list.
|
||||||
*/
|
*/
|
||||||
public Colorization getColorization (String zation);
|
public Colorization getColorization (int index, String zation);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TrimmedObjectTileSet.java,v 1.10 2003/04/01 02:16:28 mdb Exp $
|
// $Id: TrimmedObjectTileSet.java,v 1.11 2003/05/13 02:16:21 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.tile;
|
package com.threerings.media.tile;
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ public class TrimmedObjectTileSet extends TileSet
|
|||||||
if (rizer != null && _zations != null) {
|
if (rizer != null && _zations != null) {
|
||||||
zations = new Colorization[_zations.length];
|
zations = new Colorization[_zations.length];
|
||||||
for (int ii = 0; ii < _zations.length; ii++) {
|
for (int ii = 0; ii < _zations.length; ii++) {
|
||||||
zations[ii] = rizer.getColorization(_zations[ii]);
|
zations[ii] = rizer.getColorization(ii, _zations[ii]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return zations;
|
return zations;
|
||||||
|
|||||||
Reference in New Issue
Block a user