msg

Various utility function for dealing with messages.

dota2.msg.get_emsg_enum(emsg)

Attempts to find the Enum for the given int

Parameters:emsg (int) – integer corresponding to a Enum
Returns:Enum if found, emsg if not
Return type:Enum, int
dota2.msg.find_proto(emsg)

Attempts to find the protobuf message for a given Enum

Parameters:emsg (Enum) – Enum corrensponding to a protobuf message
Returns:protobuf message class