Changeset 503
- Timestamp:
- Jan 27, 2025, 4:29:28 PM (38 hours ago)
- Location:
- TFP-WebServer
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/CommandExtensions/ModInfo.xml
r499 r503 5 5 <Description value="Additional commands for server operation" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value=" 1.1.0.1" />7 <Version value="2.0.0.0" /> 8 8 <Website value="" /> 9 9 </xml> -
TFP-WebServer/CommandExtensions/src/ChatHelpers.cs
r499 r503 6 6 PrivateMessageConnections.SetLastPMSender (_sender, _receiver); 7 7 senderName = _sender.playerName; 8 9 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, _sender.entityId, 10 _message, null, EMessageSender.SenderIdAsPlayer, GeneratedTextManager.BbCodeSupportMode.SupportedAndAddEscapes)); 8 11 } else { 9 12 senderName = "Server"; 13 14 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, 15 _message, null, EMessageSender.Server, GeneratedTextManager.BbCodeSupportMode.Supported)); 10 16 } 11 17 12 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1,13 $"{senderName} (PM): {_message}", null,14 EMessageSender.None));15 18 string receiverName = _receiver.playerName; 16 19 receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName"; -
TFP-WebServer/MapRendering/ModInfo.xml
r487 r503 5 5 <Description value="Render the game map to image map tiles as it is uncovered" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value=" 1.1.0.0" />7 <Version value="2.0.0.0" /> 8 8 <Website value="" /> 9 9 </xml> -
TFP-WebServer/MapRendering/src/ModApi.cs
r463 r503 27 27 } 28 28 29 private void GameStartDone () {29 private ModEvents.EModEventResult GameStartDone (ref ModEvents.SGameStartDoneData _data) { 30 30 if (!MapRenderer.Enabled) { 31 return ;31 return ModEvents.EModEventResult.Continue; 32 32 } 33 33 34 34 ModEvents.GameShutdown.RegisterHandler (GameShutdown); 35 35 ModEvents.CalcChunkColorsDone.RegisterHandler (CalcChunkColorsDone); 36 37 return ModEvents.EModEventResult.Continue; 36 38 } 37 39 38 private void GameShutdown () {40 private ModEvents.EModEventResult GameShutdown (ref ModEvents.SGameShutdownData _data) { 39 41 MapRenderer.Shutdown (); 42 43 return ModEvents.EModEventResult.Continue; 40 44 } 41 45 42 private void CalcChunkColorsDone (Chunk _chunk) { 43 MapRenderer.RenderSingleChunk (_chunk); 46 private ModEvents.EModEventResult CalcChunkColorsDone (ref ModEvents.SCalcChunkColorsDoneData _data) { 47 MapRenderer.RenderSingleChunk (_data.Chunk); 48 49 return ModEvents.EModEventResult.Continue; 44 50 } 45 51 } -
TFP-WebServer/WebServer/ModInfo.xml
r500 r503 5 5 <Description value="Integrated Webserver for the Web Dashboard and server APIs" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value=" 1.1.0.4" />7 <Version value="2.0.0.0" /> 8 8 <Website value="" /> 9 9 </xml> -
TFP-WebServer/WebServer/src/ModApi.cs
r500 r503 18 18 } 19 19 20 private void GameStartDone () {20 private ModEvents.EModEventResult GameStartDone (ref ModEvents.SGameStartDoneData _data) { 21 21 if (!ConnectionManager.Instance.IsServer) { 22 return ;22 return ModEvents.EModEventResult.Continue; 23 23 } 24 24 … … 29 29 ItemIconHandler.Instance.LoadIcons (); 30 30 } 31 32 return ModEvents.EModEventResult.Continue; 31 33 } 32 34 33 private void WorldShuttingDown () {35 private ModEvents.EModEventResult WorldShuttingDown (ref ModEvents.SWorldShuttingDownData _data) { 34 36 webInstance?.Disconnect (); 37 38 return ModEvents.EModEventResult.Continue; 35 39 } 36 40 } -
TFP-WebServer/bin/Mods/TFP_CommandExtensions/ModInfo.xml
r499 r503 5 5 <Description value="Additional commands for server operation" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value=" 1.1.0.1" />7 <Version value="2.0.0.0" /> 8 8 <Website value="" /> 9 9 </xml> -
TFP-WebServer/bin/Mods/TFP_MapRendering/ModInfo.xml
r487 r503 5 5 <Description value="Render the game map to image map tiles as it is uncovered" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value=" 1.1.0.0" />7 <Version value="2.0.0.0" /> 8 8 <Website value="" /> 9 9 </xml> -
TFP-WebServer/bin/Mods/TFP_WebServer/ModInfo.xml
r500 r503 5 5 <Description value="Integrated Webserver for the Web Dashboard and server APIs" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value=" 1.1.0.4" />7 <Version value="2.0.0.0" /> 8 8 <Website value="" /> 9 9 </xml>
Note:
See TracChangeset
for help on using the changeset viewer.