Changeset 425 for binary-improvements2/MapRendering
- Timestamp:
- Apr 10, 2023, 8:23:15 PM (19 months ago)
- Location:
- binary-improvements2/MapRendering
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/MapRendering.csproj
r402 r425 89 89 </ItemGroup> 90 90 <ItemGroup> 91 <Compile Include="src\Api\Map.cs" /> 91 92 <Compile Include="src\Constants.cs" /> 92 93 <Compile Include="src\MapRenderBlockBuffer.cs" /> -
binary-improvements2/MapRendering/ModInfo.xml
r423 r425 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="21.0.25 0.0" />7 <Version value="21.0.258.0" /> 8 8 <Website value="" /> 9 9 </xml> -
binary-improvements2/MapRendering/src/MapRenderer.cs
r423 r425 25 25 private float renderTimeout = float.MaxValue; 26 26 private bool shutdown; 27 28 29 public static bool Enabled => ConnectionManager.Instance.IsServer && GamePrefs.GetBool (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.EnableMapRendering))); 27 30 28 31 private MapRenderer () { -
binary-improvements2/MapRendering/src/ModApi.cs
r423 r425 10 10 11 11 Web.ServerInitialized += _web => { 12 if (! GamePrefs.GetBool (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.EnableMapRendering)))) {12 if (!MapRenderer.Enabled) { 13 13 return; 14 14 } … … 24 24 25 25 private void GameStartDone () { 26 if (!ConnectionManager.Instance.IsServer) { 27 return; 28 } 29 30 if (!GamePrefs.GetBool (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.EnableMapRendering)))) { 26 if (!MapRenderer.Enabled) { 31 27 return; 32 28 }
Note:
See TracChangeset
for help on using the changeset viewer.