DodongosQuest.AreaOfEffect.GetAffectedWorldIndices C# (CSharp) Méthode

GetAffectedWorldIndices() public méthode

public GetAffectedWorldIndices ( Vector2 targetIndex ) : double>.Dictionary
targetIndex Vector2
Résultat double>.Dictionary
        public Dictionary<Vector2, double> GetAffectedWorldIndices(Vector2 targetIndex)
        {
            Dictionary<Vector2, double> affectedWorldIndices = new Dictionary<Vector2, double>();

            foreach (KeyValuePair<Vector2, double> x in affectedBaseIndices)
            {
                Vector2 worldIndex = ConvertBaseIndexToWorldIndex(x.Key, targetIndex);
                affectedWorldIndices.Add(worldIndex, x.Value);
            }

            return affectedWorldIndices;
        }