예제 #1
0
            public object?GetNthMask(int index)
            {
                ImageSpaceTint_FieldIndex enu = (ImageSpaceTint_FieldIndex)index;

                switch (enu)
                {
                case ImageSpaceTint_FieldIndex.Amount:
                    return(Amount);

                case ImageSpaceTint_FieldIndex.Color:
                    return(Color);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
예제 #2
0
            public void SetNthMask(int index, object obj)
            {
                ImageSpaceTint_FieldIndex enu = (ImageSpaceTint_FieldIndex)index;

                switch (enu)
                {
                case ImageSpaceTint_FieldIndex.Amount:
                    this.Amount = (Exception?)obj;
                    break;

                case ImageSpaceTint_FieldIndex.Color:
                    this.Color = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }