Changeset 324 for binary-improvements/MapRendering
- Timestamp:
- Sep 3, 2018, 7:11:10 PM (6 years ago)
- Location:
- binary-improvements/MapRendering
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/API.cs
r299 r324 3 3 namespace MapRendering 4 4 { 5 public class API : ModApiAbstract{6 7 public override void GameAwake () {5 public class API : IModApi { 6 private void GameAwake () { 7 // ReSharper disable once ObjectCreationAsStatement 8 8 new AllocsFixes.NetConnections.Servers.Web.Web (); 9 9 AllocsFixes.NetConnections.Servers.Web.LogBuffer.Instance.GetType (); 10 10 } 11 11 12 p ublic override void GameStartDone () {12 private void GameStartDone () { 13 13 if (AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.Instance != null) { 14 14 AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.Instance.LoadIcons (); … … 16 16 } 17 17 18 p ublic override void GameShutdown () {18 private void GameShutdown () { 19 19 AllocsFixes.MapRendering.MapRendering.Shutdown (); 20 20 } 21 21 22 p ublic override void CalcChunkColorsDone (Chunk _chunk) {22 private void CalcChunkColorsDone (Chunk _chunk) { 23 23 AllocsFixes.MapRendering.MapRendering.RenderSingleChunk (_chunk); 24 24 } 25 25 26 public void InitMod () { 27 ModEvents.GameAwake.RegisterHandler (GameAwake); 28 ModEvents.GameStartDone.RegisterHandler (GameStartDone); 29 ModEvents.GameShutdown.RegisterHandler (GameShutdown); 30 ModEvents.CalcChunkColorsDone.RegisterHandler (CalcChunkColorsDone); 31 } 26 32 } 27 33 } -
binary-improvements/MapRendering/Web/API/GetPlayerList.cs
r309 r324 153 153 Match filterMatch = numberFilterMatcher.Match (_filterVal); 154 154 if (filterMatch.Success) { 155 double value = Utils.ParseDouble (filterMatch.Groups [2].Value);155 double value = StringParsers.ParseDouble (filterMatch.Groups [2].Value); 156 156 NumberMatchType matchType; 157 157 double epsilon = value / 100000; -
binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs
r309 r324 15 15 World w = GameManager.Instance.World; 16 16 foreach (KeyValuePair<int, EntityPlayer> current in w.Players.dict) { 17 ClientInfo ci = ConnectionManager.Instance. GetClientInfoForEntityId (current.Key);17 ClientInfo ci = ConnectionManager.Instance.Clients.ForEntityId (current.Key); 18 18 Player player = PersistentContainer.Instance.Players [ci.playerId, false]; 19 19 … … 32 32 33 33 // Deprecated! 34 p.Add ("experience", new JSONNumber ( player != null ? player.Experience : 0));34 p.Add ("experience", new JSONNumber (-1)); 35 35 36 36 p.Add ("level", new JSONNumber (player != null ? player.Level : -1)); -
binary-improvements/MapRendering/WebAndMapRendering.csproj
r322 r324 44 44 <Reference Include="System"> 45 45 <HintPath>..\7dtd-binaries\System.dll</HintPath> 46 <Private>False</Private> 47 </Reference> 48 <Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"> 49 <HintPath>..\7dtd-binaries\UnityEngine.CoreModule.dll</HintPath> 50 <Private>False</Private> 51 </Reference> 52 <Reference Include="UnityEngine.ImageConversionModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"> 53 <HintPath>..\7dtd-binaries\UnityEngine.ImageConversionModule.dll</HintPath> 46 54 <Private>False</Private> 47 55 </Reference>
Note:
See TracChangeset
for help on using the changeset viewer.