-
Notifications
You must be signed in to change notification settings - Fork 5
/
MapSizeData.cs
51 lines (44 loc) · 1.46 KB
/
MapSizeData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using System.Linq;
namespace Wunderwunsch.HexMapLibrary
{
public struct MapSizeData
{
/// <summary>
/// lowest x Value of any map tile
/// </summary>
public readonly int offsetTileMinValX;
/// <summary>
/// highest x Value of any map tile
/// </summary>
public readonly int offsetTileMaxValX;
/// <summary>
/// lowest z Value of any map tile
/// </summary>
public readonly int offsetTileMinValZ;
/// <summary>
/// highest z Value of any map tile
/// </summary>
public readonly int offsetTileMaxValZ;
/// <summary>
/// map center (in cartesian coordinates)
/// </summary>
public readonly Vector3 center;
/// <summary>
/// half-size of the map extents along each axis
/// </summary>
public readonly Vector3 extents;
public MapSizeData(int offsetTileMinValX, int offsetTileMaxValX, int offsetTileMinValZ, int offsetTileMaxValZ, Vector3 center, Vector3 extents)
{
this.offsetTileMinValX = offsetTileMinValX;
this.offsetTileMaxValX = offsetTileMaxValX;
this.offsetTileMinValZ = offsetTileMinValZ;
this.offsetTileMaxValZ = offsetTileMaxValZ;
this.center = center;
this.extents = extents;
}
}
}