Пример #1
0
            public object?GetNthMask(int index)
            {
                BipedBodyTemplate_FieldIndex enu = (BipedBodyTemplate_FieldIndex)index;

                switch (enu)
                {
                case BipedBodyTemplate_FieldIndex.FirstPersonFlags:
                    return(FirstPersonFlags);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Пример #2
0
            public void SetNthMask(int index, object obj)
            {
                BipedBodyTemplate_FieldIndex enu = (BipedBodyTemplate_FieldIndex)index;

                switch (enu)
                {
                case BipedBodyTemplate_FieldIndex.FirstPersonFlags:
                    this.FirstPersonFlags = (Exception?)obj;
                    break;

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