コード例 #1
0
        public void InstallMod(int slotNumber, ItemRepresentation owner, ItemModDataBlock datablock, CharacterStateFlags flags)
        {
            switch (slotNumber)
            {
            case 0:
            {
                owner.InstallMod(ref this.a, 0, datablock, flags);
                break;
            }

            case 1:
            {
                owner.InstallMod(ref this.b, 1, datablock, flags);
                break;
            }

            case 2:
            {
                owner.InstallMod(ref this.c, 2, datablock, flags);
                break;
            }

            case 3:
            {
                owner.InstallMod(ref this.d, 3, datablock, flags);
                break;
            }

            case 4:
            {
                owner.InstallMod(ref this.e, 4, datablock, flags);
                break;
            }

            default:
            {
                throw new IndexOutOfRangeException();
            }
            }
        }