mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update
Update
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using TEngine.Core.Network;
|
||||
|
||||
namespace GameLogic
|
||||
{
|
||||
public class NetworkUtils
|
||||
{
|
||||
public static bool CheckError(IResponse response)
|
||||
{
|
||||
bool hasError = false;
|
||||
if (response == null)
|
||||
{
|
||||
var networkError = "NetWork Response Error";
|
||||
hasError = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
hasError = response.ErrorCode != 0;
|
||||
}
|
||||
return hasError;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user