// factory: flags default to empty internal static PieceModel Create(PlayerValue player, PieceDef piecedef) { return(new PieceModel { Def = piecedef, Player = player, Piece = piecedef.Piece, AttributeLookup = piecedef.AttributeLookup, LongHash = HashMaker.GetHash(piecedef.Piece) ^ HashMaker.GetHash(player), }); }
internal void AddPiece(PieceDef piece) { PieceLookup.Add(piece.Piece, piece); }
internal PieceDef Exec() { _piecedef = new PieceDef(); EvalExec(); return(_piecedef); }