Start weechat:
$ weechat
Go to the teams gateway page to retrieve your host, user, and pass
In weechat run the following:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Utilities; | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
[RequireComponent(typeof(MeshCollider))] | |
public class Chunk : MonoBehaviour { | |
public static int Size = 16; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
using Utilities; | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
[RequireComponent(typeof(MeshCollider))] | |
public class Chunk : MonoBehaviour { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Utilities; | |
public interface INoise2DGenerator { | |
float[,] GenerateNoise(Vector2 position, Vector2Int dimensions); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Utilities; | |
public class Block { | |
public virtual MeshData GetBlockData(Vector3Int position, | |
MeshData collectedMeshData) { | |
collectedMeshData = FaceDataTop(position, collectedMeshData); | |
collectedMeshData = FaceDataBottom(position, collectedMeshData); | |
collectedMeshData = FaceDataNorth(position, collectedMeshData); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Utilities; | |
public class Block { | |
// Enumerator representing the face of the block. | |
public enum FaceDirection { | |
North, | |
// +z | |
South, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Utilities; | |
public class AirBlock : Block { | |
static Block instance; | |
public static Block Instance { | |
get { | |
if (instance == null) { | |
instance = new AirBlock(); |