Galaxy: A few more tweaks to the Radius generation
[GalaxyGenerator.git] /
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;

namespace GalaxyGenerator
{
	public class GalacticallyUniqueIdentifier
	{
		public static UInt64 NewID()
		{
			return ++nextID;
		}
		
		// Be careful!  This does not increment nextID and MUST not be used to assign IDs to elements!
		public static UInt64 Peek()
		{
			return nextID;
		}
		
		private static UInt64 nextID = 0;
	}
}