C# 클래스 SteamBot.AdminUserHandler

A user handler class that implements basic text-based commands entered in chat or trade chat.
상속: UserHandler
파일 보기 프로젝트 열기: natoshi/steamdogebot

공개 메소드들

메소드 설명
AdminUserHandler ( Bot bot, SteamID sid ) : System
OnAcceptedFriend ( SteamID id ) : void
OnAddedFriend ( SteamID id ) : void
OnFriendAdd ( ) : bool

Called when a the user adds the bot as a friend.

OnFriendRemove ( ) : void
OnGroupAdd ( ) : bool

Triggered when a clan invites the bot.

OnLoginCompleted ( ) : bool

Called when the bot is fully logged in.

OnMessage ( string message, EChatEntryType type ) : void

Called whenever a message is sent to the bot. This is limited to regular and emote messages.

OnTradeAccept ( ) : void
OnTradeAddItem ( Schema schemaItem, Inventory inventoryItem ) : void
OnTradeError ( string error ) : void
OnTradeInit ( ) : void
OnTradeMessage ( string message ) : void
OnTradeReady ( bool ready ) : void
OnTradeRemoveItem ( Schema schemaItem, Inventory inventoryItem ) : void
OnTradeRequest ( ) : bool

Called whenever a user requests a trade.

OnTradeSuccess ( ) : void
OnTradeTimeout ( ) : void

비공개 메소드들

메소드 설명
AddAllItems ( ) : void
AddCrateBySeries ( string series, uint amount ) : void
AddItemsByCraftType ( string typeToAdd, uint amount ) : void
GetAddAmount ( string data ) : uint
GetSubCommand ( string data, string &subCommand ) : bool
HandleAddCommand ( string command ) : void
HandleRemoveCommand ( string command ) : void
PrintHelpMessage ( ) : void
ProcessTradeMessage ( string message ) : void

메소드 상세

AdminUserHandler() 공개 메소드

public AdminUserHandler ( Bot bot, SteamID sid ) : System
bot Bot
sid SteamKit2.SteamID
리턴 System

OnAcceptedFriend() 공개 메소드

public OnAcceptedFriend ( SteamID id ) : void
id SteamKit2.SteamID
리턴 void

OnAddedFriend() 공개 메소드

public OnAddedFriend ( SteamID id ) : void
id SteamKit2.SteamID
리턴 void

OnFriendAdd() 공개 메소드

Called when a the user adds the bot as a friend.
public OnFriendAdd ( ) : bool
리턴 bool

OnFriendRemove() 공개 메소드

public OnFriendRemove ( ) : void
리턴 void

OnGroupAdd() 공개 메소드

Triggered when a clan invites the bot.
public OnGroupAdd ( ) : bool
리턴 bool

OnLoginCompleted() 공개 메소드

Called when the bot is fully logged in.
public OnLoginCompleted ( ) : bool
리턴 bool

OnMessage() 공개 메소드

Called whenever a message is sent to the bot. This is limited to regular and emote messages.
public OnMessage ( string message, EChatEntryType type ) : void
message string
type EChatEntryType
리턴 void

OnTradeAccept() 공개 메소드

public OnTradeAccept ( ) : void
리턴 void

OnTradeAddItem() 공개 메소드

public OnTradeAddItem ( Schema schemaItem, Inventory inventoryItem ) : void
schemaItem Schema
inventoryItem Inventory
리턴 void

OnTradeError() 공개 메소드

public OnTradeError ( string error ) : void
error string
리턴 void

OnTradeInit() 공개 메소드

public OnTradeInit ( ) : void
리턴 void

OnTradeMessage() 공개 메소드

public OnTradeMessage ( string message ) : void
message string
리턴 void

OnTradeReady() 공개 메소드

public OnTradeReady ( bool ready ) : void
ready bool
리턴 void

OnTradeRemoveItem() 공개 메소드

public OnTradeRemoveItem ( Schema schemaItem, Inventory inventoryItem ) : void
schemaItem Schema
inventoryItem Inventory
리턴 void

OnTradeRequest() 공개 메소드

Called whenever a user requests a trade.
public OnTradeRequest ( ) : bool
리턴 bool

OnTradeSuccess() 공개 메소드

public OnTradeSuccess ( ) : void
리턴 void

OnTradeTimeout() 공개 메소드

public OnTradeTimeout ( ) : void
리턴 void