izurvive sdk
1.0.0
يستخدم iZurvive نظام الإحداثيات الجغرافية (خط العرض وخط الطول) الذي يختلف عن نظام الإحداثيات داخل اللعبة في DayZ
علاوة على ذلك، يعتمد التحول على خريطة DayZ.
استخدم IzurviveTransformation
للتحويل بين أنظمة الإحداثيات هذه:
const { IzurviveTransformation } = require ( './lib/izurvive' )
const { Point , Coordinate } = require ( './lib/model' )
// Transform the DayZ Coordinate 1500 2500 on Chernarus Plus to iZurvive Coordinates
const dayzPoint = new Point ( 1500 , 2500 )
const transformation = IzurviveTransformation . chernarusPlus ( )
const izurviveCoordinate = transformation . dayzPointToIzurviveCoordinate ( dayzPoint )
const { IzurviveTransformation } = require ( './lib/izurvive' )
const { Point , Coordinate } = require ( './lib/model' )
// Transform the iZurvive Coordinate (-50, 30) to DayZ Coordinates on Livonia
const izurviveCoordinate = new Coordinate ( - 50 , 30 )
const transformation = IzurviveTransformation . livonia ( )
const dayzPoint = transformation . izurviveCoordinateToDayzPoint ( izurviveCoordinate )