public int trackOctant(List<int> octList)
{
// redundant judgment here...
if (trackedOctant [CommonUtility.getStringFromList (octList)] == null) {
Octant oct = instance.getOctantByIndex (octList);
if (oct == null) {
oct = instance.addOctant (octList);
}
instance.trackOctant (oct);
int xmin = 0;
int ymin = 0;
int zmin = 0;
// instantiate the octant being tracked.
// GetBoundaries uses ref ints
string octantName = CommonUtility.getStringFromList (octList);
CommonUtility.GetBoundaries (octantName, ref xmin, ref ymin, ref zmin);
instantiateOctant (UnityConstants.minimapPrefix + octantName, xmin + 256, ymin + 256, zmin + 256);
trackedOctant.Add (CommonUtility.getStringFromList (octList), new UnityEngine.Vector3 (xmin + 256, ymin + 256, zmin + 256));
} else {
}
return 1;
}