Example #1
0
            public void SetNthMask(int index, object obj)
            {
                NpcFaceParts_FieldIndex enu = (NpcFaceParts_FieldIndex)index;

                switch (enu)
                {
                case NpcFaceParts_FieldIndex.Nose:
                    this.Nose = (Exception?)obj;
                    break;

                case NpcFaceParts_FieldIndex.Unknown:
                    this.Unknown = (Exception?)obj;
                    break;

                case NpcFaceParts_FieldIndex.Eyes:
                    this.Eyes = (Exception?)obj;
                    break;

                case NpcFaceParts_FieldIndex.Mouth:
                    this.Mouth = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Example #2
0
            public object?GetNthMask(int index)
            {
                NpcFaceParts_FieldIndex enu = (NpcFaceParts_FieldIndex)index;

                switch (enu)
                {
                case NpcFaceParts_FieldIndex.Nose:
                    return(Nose);

                case NpcFaceParts_FieldIndex.Unknown:
                    return(Unknown);

                case NpcFaceParts_FieldIndex.Eyes:
                    return(Eyes);

                case NpcFaceParts_FieldIndex.Mouth:
                    return(Mouth);

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