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

                switch (enu)
                {
                case WorldspaceLandDefaults_FieldIndex.DefaultLandHeight:
                    return(DefaultLandHeight);

                case WorldspaceLandDefaults_FieldIndex.DefaultWaterHeight:
                    return(DefaultWaterHeight);

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

                switch (enu)
                {
                case WorldspaceLandDefaults_FieldIndex.DefaultLandHeight:
                    this.DefaultLandHeight = (Exception?)obj;
                    break;

                case WorldspaceLandDefaults_FieldIndex.DefaultWaterHeight:
                    this.DefaultWaterHeight = (Exception?)obj;
                    break;

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