예제 #1
0
        public override void Execute()
        {
            string weaponName = Data[1];
            int    gemSlot    = int.Parse(Data[2]);

            string[] gemInfo    = Data[3].Split();
            string   gemQuality = gemInfo[0];
            string   gemType    = gemInfo[1];

            IGem gem = gemFactory.CreateGem(gemType, gemQuality);

            inventory.AddGemToSocket(weaponName, gemSlot, gem);
        }