StatDescriptor[] stats = resourceInstTable[resourceInstId].getType().getStats(); for (int i = 0; i < stats.length; i++) { long v;
System.out.print(" instId=" + resourceInstId); StatDescriptor[] stats = resourceInstTable[resourceInstId].getType().getStats(); int statOffset = dataIn.readUnsignedByte(); while (statOffset != ILLEGAL_STAT_OFFSET) {
boolean loadInstance(String textId, long numericId, ResourceType type) { if (!type.isLoaded()) { return false; } if (filters == null || filters.length == 0) { return true; } else { for (int i = 0; i < filters.length; i++) { if (filters[i].typeMatches(type.getName())) { if (filters[i].instanceMatches(textId, numericId)) { StatDescriptor[] stats = type.getStats(); for (int j = 0; j < stats.length; j++) { if (stats[j].isLoaded()) { if (filters[i].statMatches(stats[j].getName())) { return true; } } } } } } return false; } }
protected ResourceInst(StatArchiveFile archive, int uniqueId, String name, long id, ResourceType type, boolean loaded) { this.loaded = loaded; this.archive = archive; this.name = name; this.id = id; Assert.assertTrue(type != null); this.type = type; if (loaded) { StatDescriptor[] stats = type.getStats(); this.values = new SimpleValue[stats.length]; for (int i = 0; i < stats.length; i++) { if (archive.loadStat(stats[i], this)) { this.values[i] = new SimpleValue(this, stats[i]); } else { this.values[i] = null; } } } else { this.values = null; } }