skadistats.clarity.parser.handler.UserMsgSpectatorPlayerClickHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarity Show documentation
Show all versions of clarity Show documentation
Clarity is an open source replay parser for Dota 2 and CSGO 1 and 2 written in Java.
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