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);
        }
Ejemplo n.º 2
0
        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);
        }