Changeset 238 for binary-improvements/MapRendering/Web
- Timestamp:
- Jul 3, 2015, 4:16:11 PM (9 years ago)
- Location:
- binary-improvements/MapRendering/Web
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetLandClaims.cs
r230 r238 29 29 result.Add ("claimowners", claimOwners); 30 30 31 Dictionary<Vector3i, PersistentPlayerData> d = GameManager.Instance.GetPersistentPlayerList (). positionToLPBlockOwner;31 Dictionary<Vector3i, PersistentPlayerData> d = GameManager.Instance.GetPersistentPlayerList ().m_lpBlockMap; 32 32 if (d != null) { 33 33 World w = GameManager.Instance.World; … … 45 45 if (steamid.Length == 0 || kvp.Key.PlayerId.Equals (steamid)) { 46 46 string curID = kvp.Key.PlayerId; 47 bool isActive = w. LandClaimIsActive(kvp.Key);47 bool isActive = w.IsLandProtectionValidForPlayer (kvp.Key); 48 48 49 49 JSONObject owner = new JSONObject (); -
binary-improvements/MapRendering/Web/Web.cs
r230 r238 56 56 57 57 handlers.Add ( 58 "/itemicons/", 59 new ItemIconHandler ( 60 "/itemicons/", 61 true) 62 ); 63 64 handlers.Add ( 58 65 "/map/", 59 66 new StaticHandler ( 60 67 "/map/", 61 StaticDirectories.GetSaveGameDir () + "/map",68 GameUtils.GetSaveGameDir () + "/map", 62 69 MapRendering.MapRendering.GetTileCache (), 63 70 false)
Note:
See TracChangeset
for help on using the changeset viewer.