Beispiel #1
0
            public object?GetNthMask(int index)
            {
                WorldspaceMapOffset_FieldIndex enu = (WorldspaceMapOffset_FieldIndex)index;

                switch (enu)
                {
                case WorldspaceMapOffset_FieldIndex.Scale:
                    return(Scale);

                case WorldspaceMapOffset_FieldIndex.CellOffset:
                    return(CellOffset);

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

                switch (enu)
                {
                case WorldspaceMapOffset_FieldIndex.Scale:
                    this.Scale = (Exception?)obj;
                    break;

                case WorldspaceMapOffset_FieldIndex.CellOffset:
                    this.CellOffset = (Exception?)obj;
                    break;

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