Merge pull request #2 from ufx/master

More credits & map coordinate info
This commit is contained in:
Josh Freeman
2015-10-31 00:06:39 +00:00
2 changed files with 21 additions and 1 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ If you want to help with mapping data, click **Download ZIP** to download the re
This is one of the best applications to just get stuck in with and get going somewhere. It is very well polished, has an excellent 3D model viewer.
## Saint Coinach
- Managed by: Clorifex
- Written by Rogueadyn
- GitHub: https://github.com/Rogueadyn/SaintCoinach
- Updates by Clorifex
- GitHub: https://github.com/ufx/SaintCoinach
# APIs
+18
View File
@@ -0,0 +1,18 @@
Conversion of a Level coordinate into a 2D map coordinate:
```csharp
private double ToMapCoordinate(double val) {
var c = Map.SizeFactor / 100.0;
val *= c;
return ((41.0 / c) * ((val + 1024.0) / 2048.0)) + 1;
}
```
Conversion of a FishingSpot coordinate into a 2D map coordinate:
```csharp
private double ToMapCoordinate(double val) {
var c = TerritoryType.Map.SizeFactor / 100.0;
return (41.0 / c) * ((val) / 2048.0) + 1;
}
```