예제 #1
0
 public Turn(TurnId turnId, Board board, NativeEnumerable <Power> powers, NativeEnumerable <EnergySupplier> energySuppliers, uint randomSeed)
 {
     this.TurnId                  = turnId;
     this.Board                   = board;
     this.Powers                  = powers;
     this.EnergySuppliers         = energySuppliers;
     RandomSeed                   = randomSeed;
     this.ordersForLaterTurn      = default;
     this.ordersForLaterTurnCount = default;
 }
예제 #2
0
 public Turn Create(NativeArray <GameMasterData> masterData, TurnId turnId, uint randomSeed, int energySupplierNeighborDistance)
 {
     ref var master = ref masterData.AsRefEnumerableUnsafe()[0];
예제 #3
0
 public TurnIdEquality(TurnId turnId)
 {
     this.turnId = turnId.Value;
 }