* Server side idle timeout Initial commit for server side idle timeout counter. This adds a new int value that is updated when room/game/mod/admin commands occur and is checked during the regular ping timout function that if the users new "idle" value exceeds the idleclienttimeout value defined in the servers configuration file the user is logged out. The user will receive a warning at the 90% time frame mark about being idle. * Use round instead of ceil Travis fix for older xcode issue's. * Fixed requested items Mis-spelleed function, added header, added warning message sent check value. Also corrected the protobuf declaration file for event_notifyuser * Moved bool to protected * Re-Ordered Declarations * Removed most stylistic items Resolved most noted things. * Remove client side idle timeout Removed client side idle timeout functionality
18 lines
401 B
Protocol Buffer
18 lines
401 B
Protocol Buffer
import "session_event.proto";
|
|
|
|
message Event_NotifyUser {
|
|
|
|
enum NotificationType {
|
|
UNKNOWN = 0; // Default enum value if no "type" is defined when used
|
|
PROMOTED = 1;
|
|
WARNING = 2;
|
|
IDLEWARNING = 3;
|
|
}
|
|
|
|
extend SessionEvent {
|
|
optional Event_NotifyUser ext = 1010;
|
|
}
|
|
optional NotificationType type = 1;
|
|
optional string warning_reason = 2;
|
|
|
|
}
|