Esempio n. 1
0
    private void UpdateConstantProperties()
    {
        foreach (Vector2 letterPos in this.letters)
        {
            FieldSlot fSlot = fieldSlots[(int)letterPos.x, (int)letterPos.y];
            string    name  = fSlot.GetText();
            string    col   = fSlot.GetColor();
            string    shape = fSlot.GetShape();

            Constant c = this.constants[name];
            c.properties.Clear();
            if (shape.Length > 0)
            {
                c.properties.Add(shape);
                if (col.Length > 0)
                {
                    c.properties.Add(col);
                }
            }
        }
    }