All Downloads are FREE. Search and download functionalities are using the official Maven repository.

skadistats.clarity.parser.handler.UserMsgSpectatorPlayerClickHandler Maven / Gradle / Ivy

Go to download

Clarity is an open source replay parser for Dota 2 and CSGO 1 and 2 written in Java.

There is a newer version: 3.1.1
Show newest version
package skadistats.clarity.parser.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import skadistats.clarity.match.Match;
import skadistats.clarity.model.UserMessage;
import skadistats.clarity.parser.Handler;
import skadistats.clarity.parser.HandlerHelper;
import skadistats.clarity.parser.RegisterHandler;

import com.dota2.proto.DotaUsermessages.CDOTAUserMsg_SpectatorPlayerClick;

@RegisterHandler(CDOTAUserMsg_SpectatorPlayerClick.class)
public class UserMsgSpectatorPlayerClickHandler implements Handler {

    private final Logger log = LoggerFactory.getLogger(getClass());
    
    @Override
    public void apply(int peekTick, CDOTAUserMsg_SpectatorPlayerClick message, Match match) {
        HandlerHelper.traceMessage(log, peekTick, message);
        log.debug("{} SPECTATOR_PLAYER_CLICK",
            match.getReplayTimeAsString()
        );
        match.getUserMessages().add(UserMessage.build(message, match));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy