Example #1
0
 public float getWeight(ResourceType resourceType) {
   return weights[resourceType.ordinal()];
 }
Example #2
0
 public void setWeight(ResourceType resourceType, float weight) {
   weights[resourceType.ordinal()] = weight;
 }