Changeset 383 for binary-improvements2/MapRendering/Web
- Timestamp:
- Aug 1, 2022, 1:16:11 PM (2 years ago)
- Location:
- binary-improvements2/MapRendering/Web
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/Web/API/GetAllowedCommands.cs
r382 r383 1 using System.Net;2 1 using AllocsFixes.JSON; 3 2 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest; -
binary-improvements2/MapRendering/Web/API/GetAnimalsLocation.cs
r382 r383 1 1 using System.Collections.Generic; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using AllocsFixes.LiveData; -
binary-improvements2/MapRendering/Web/API/GetHostileLocation.cs
r382 r383 1 1 using System.Collections.Generic; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using AllocsFixes.LiveData; -
binary-improvements2/MapRendering/Web/API/GetLog.cs
r382 r383 1 1 using System.Collections.Generic; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest; -
binary-improvements2/MapRendering/Web/API/GetPlayerInventories.cs
r382 r383 1 1 using System.Collections.Generic; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using AllocsFixes.PersistentData; -
binary-improvements2/MapRendering/Web/API/GetPlayerList.cs
r382 r383 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using System.Net;5 4 using System.Text.RegularExpressions; 6 5 using AllocsFixes.JSON; -
binary-improvements2/MapRendering/Web/API/GetPlayersLocation.cs
r382 r383 1 1 using System.Collections.Generic; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using AllocsFixes.PersistentData; -
binary-improvements2/MapRendering/Web/API/GetPlayersOnline.cs
r382 r383 1 1 using System.Collections.Generic; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using AllocsFixes.PersistentData; -
binary-improvements2/MapRendering/Web/API/GetServerInfo.cs
r382 r383 1 1 using System; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest; -
binary-improvements2/MapRendering/Web/API/GetStats.cs
r382 r383 1 using System.Net;2 1 using AllocsFixes.JSON; 3 2 using AllocsFixes.LiveData; -
binary-improvements2/MapRendering/Web/API/GetWebUIUpdates.cs
r382 r383 1 using System.Net;2 1 using AllocsFixes.JSON; 3 2 using AllocsFixes.LiveData; -
binary-improvements2/MapRendering/Web/API/Null.cs
r382 r383 1 using System.Net; 2 using System.Text; 1 using System.Text; 3 2 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest; 4 3 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse; -
binary-improvements2/MapRendering/Web/Handlers/AbsHandler.cs
r382 r383 1 using System.Net;2 1 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest; 3 2 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse; -
binary-improvements2/MapRendering/Web/Handlers/SimpleRedirectHandler.cs
r382 r383 1 using System.Net;2 1 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest; 3 2 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse; -
binary-improvements2/MapRendering/Web/Web.cs
r382 r383 164 164 response.ProtocolVersion = httpProtocolVersion; 165 165 166 // No game yet -> fail request 167 if (GameManager.Instance.World == null) { 168 response.StatusCode = (int) HttpStatusCode.ServiceUnavailable; 169 return; 170 } 171 172 if (request.Url == null) { 173 response.StatusCode = (int) HttpStatusCode.BadRequest; 174 return; 175 } 176 166 177 #if ENABLE_PROFILER 167 178 authSampler.Begin (); … … 172 183 #endif 173 184 174 175 185 //Log.Out ("Login status: conn!=null: {0}, permissionlevel: {1}", conn != null, permissionLevel); 176 177 186 178 187 if (conn != null) { … … 186 195 } 187 196 188 // No game yet -> fail request189 if (GameManager.Instance.World == null) {190 response.StatusCode = (int) HttpStatusCode.ServiceUnavailable;191 return;192 }193 194 197 string requestPath = request.Url.AbsolutePath; 195 198
Note:
See TracChangeset
for help on using the changeset viewer.