13 override void OnError(
int code,
int restCode,
int apiCode )
32 protected ref StateBackendCallback m_callback;
36 override event string GetKeyword()
41 override event protected ref
ScrServerCmdResult OnChatClientExecution(array<string> argv,
int playerId)
43 m_result.m_eResultType = EServerCmdResultType.OK;
44 m_result.m_sResponse =
string.Empty;
48 protected override ref
ScrServerCmdResult OnChatServerExecution(array<string> argv,
int playerId)
50 m_result.m_sResponse =
string.Empty;
54 m_result.m_eResultType = EServerCmdResultType.PARAMETERS;
58 m_callback =
new StateBackendCallback;
62 GetGame().GetSaveManager().UploadToWorkshop(argv[1]);
68 switch(m_callback.m_eState)
71 case EBackendCallbackState.EBCS_PENDING: m_result.m_eResultType = EServerCmdResultType.PENDING;
break;
72 case EBackendCallbackState.EBCS_TIMEOUT: m_result.m_eResultType = EServerCmdResultType.ERR; m_result.m_sResponse =
"Timeout";
break;
73 default: m_result.m_eResultType = EServerCmdResultType.ERR;
break;
78 override event protected int RequiredChatPermission()
83 override event bool IsServerSide()