-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChunkData.cs
23 lines (21 loc) · 696 Bytes
/
ChunkData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System.Collections;
using UnityEngine;
using System.Collections.Generic;
public class ChunkData
{
public GameObject chunkObject;
public Vector3Int chunkPos;
public Vector3Int worldPosition;
public Mesh chunkMesh;
public List<Vector3> meshVertices;
public List<int> meshTriangles;
public ChunkData(GameObject _chunkObj, Vector3Int _chunkPos, Vector3Int _worldPos, Mesh _chunkMesh, List<Vector3> _meshVertices, List<int> _meshTriangles)
{
chunkObject = _chunkObj;
chunkPos = _chunkPos;
worldPosition = _worldPos;
chunkMesh = _chunkMesh;
meshVertices = _meshVertices;
meshTriangles = _meshTriangles;
}
}