SourceMod SDK  1.7
SourceMod::IProtobufUserMessageListener Class Reference
Inheritance diagram for SourceMod::IProtobufUserMessageListener:
SourceMod::IUserMessageListener

Public Member Functions

virtual void OnUserMessage (int msg_id, google::protobuf::Message *msg, IRecipientFilter *pFilter)
 Called when a hooked user message is being sent and all interceptions have finished. More...
 
virtual ResultType InterceptUserMessage (int msg_id, google::protobuf::Message *msg, IRecipientFilter *pFilter)
 Called when a hooked user message is intercepted. More...
 
virtual UserMessageType GetUserMessageType () const
 
- Public Member Functions inherited from SourceMod::IUserMessageListener
virtual void OnUserMessageSent (int msg_id)
 Called when a hooked user message is sent, regardless of the hook type. More...
 
virtual unsigned int GetUserMessageAPIVersion ()
 Returns the user message API version.
 
virtual void OnPostUserMessage (int msg_id, bool sent)
 Called when a hooked user message hook is finished, regardless of the hook type. More...
 

Member Function Documentation

virtual ResultType SourceMod::IProtobufUserMessageListener::InterceptUserMessage ( int  msg_id,
google::protobuf::Message *  msg,
IRecipientFilter *  pFilter 
)
inlinevirtual

Called when a hooked user message is intercepted.

Parameters
msg_idMessage Id.
msgProtobuf Message structure containing message data.
pFilterRecipient filter.
Returns
Pl_Continue to allow message, Pl_Stop or Pl_Handled to scrap it.
virtual void SourceMod::IProtobufUserMessageListener::OnUserMessage ( int  msg_id,
google::protobuf::Message *  msg,
IRecipientFilter *  pFilter 
)
inlinevirtual

Called when a hooked user message is being sent and all interceptions have finished.

Parameters
msg_idMessage Id.
msgProtobuf Message structure containing message data.
pFilterRecipient filter.

The documentation for this class was generated from the following file: