Fixed Laser cancelling bug Fixed Turrets not activating Added ability to bind player perspective to orbital entities Added Markov Chain name generator + Australian place name dataset Modified old "galaxy" shader to serve as sector background Implemented Cem Yuksel's Weighted Sample Elimination for Poisson Disk Sample Sets Created sector generator which places sectors using WSE
14 lines
No EOL
292 B
C#
14 lines
No EOL
292 B
C#
using System.Collections.Generic;
|
|
using Unity.Mathematics;
|
|
|
|
public class Sector
|
|
{
|
|
public List<SectorZone> Zones = new List<SectorZone>();
|
|
}
|
|
|
|
public class SectorZone
|
|
{
|
|
public string Name;
|
|
public float2 Position;
|
|
public List<SectorZone> AdjacentZones = new List<SectorZone>();
|
|
} |