Esempio n. 1
0
 private static BoundsSpec FromJson(BoundsJsonSpec boundsJsonSpec)
 {
     BoundsSpec spec = new BoundsSpec();
     spec.MaxX = boundsJsonSpec.MaxX;
     spec.MinX = boundsJsonSpec.MinX;
     spec.MaxZ = boundsJsonSpec.MaxZ;
     spec.MinZ = boundsJsonSpec.MinZ;
     return spec;
 }
Esempio n. 2
0
 private static BoundsJsonSpec ToJson(BoundsSpec rect)
 {
     return new BoundsJsonSpec() {
         MinX = rect.MinX,
         MinZ = rect.MinZ,
         MaxX = rect.MaxX,
         MaxZ = rect.MaxZ
     };
 }