<?php

/**
 * 消耗道具
 */
namespace Game\Operation\EventLog;

class ConsumeItemLog extends EventLog
{
    public int $itemId;
    public int $costNum; //消耗的数量
    public int $newNum; //剩余数量
    public string $source;  //来源

    public function GetLogType()
    {
        return EventLogType::ItemConsume;
    }

    public function CleanUp()
    {
        $this->itemId = 0;
        $this->costNum = 0;
        $this->newNum = 0;
        $this->source = 0;
    }
}
