From 07919e8a57b91709b7c0e69a4e6ea09a4d8c76c8 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 8 Nov 2010 22:13:33 +0000 Subject: [PATCH] Added some commentary. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1061 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/main/java/com/threerings/cast/util/CastUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/threerings/cast/util/CastUtil.java b/src/main/java/com/threerings/cast/util/CastUtil.java index 75f4bad6..f7586489 100644 --- a/src/main/java/com/threerings/cast/util/CastUtil.java +++ b/src/main/java/com/threerings/cast/util/CastUtil.java @@ -82,6 +82,12 @@ public class CastUtil ArrayList choices = Lists.newArrayList(); Iterators.addAll(choices, crepo.enumerateComponentIds(cclass)); + // each of our components has up to four colorizations: two "global" skin colorizations + // and potentially a primary and secondary clothing colorization; in a real system one + // would probably keep a separate database of which character component required which + // colorizations, but here we just assume everything could have any of the four + // colorizations; it *usually* doesn't hose an image if you apply a recoloring that it + // does not support, but it can match stray colors unnecessarily zations[ii] = new Colorization[COLOR_CLASSES.length]; for (int zz = 0; zz < COLOR_CLASSES.length; zz++) { zations[ii][zz] = cpos.getRandomStartingColor(COLOR_CLASSES[zz]).getColorization();