public static int GetStateHash() { int hash = 23; for (int i = 0; i < PeakCount; i++) { if (ProjectileActive[i]) { LSProjectile proj = ProjectileManager.ProjectileBucket[i]; hash ^= proj.GetStateHash(); } } return(hash); }
public static int GetStateHash() { int hash = 23; for (int i = ProjectileBucket.PeakCount - 1; i >= 0; i--) { if (ProjectileBucket.arrayAllocation[i]) { LSProjectile proj = ProjectileManager.ProjectileBucket[i]; hash ^= proj.GetStateHash(); } } return(hash); }