コード例 #1
0
ファイル: ItemStack.cs プロジェクト: tznind/Wanderer
        public void Combine(IItemStack s2, IWorld world)
        {
            if (!CanCombine(s2))
            {
                throw new ArgumentException("Unable to combine objects because they were were not compatible");
            }

            StackSize += s2.StackSize;
            world.Erase(s2);
        }