Support for arrow and highlight actions in pgn
This commit is contained in:
@@ -8,7 +8,7 @@ class CHESS_JSON {
|
||||
const FEN = 'fen';
|
||||
const MOVE_COMMENT = 'comment';
|
||||
const MOVE_CLOCK = 'clk';
|
||||
const MOVE_ACTION = 'action';
|
||||
const MOVE_ACTIONS = 'actions';
|
||||
const MOVE_VARIATIONS = 'variations';
|
||||
const MOVE_MOVES = 'moves';
|
||||
const MOVE_CAPTURE = 'capture';
|
||||
@@ -22,6 +22,9 @@ class CHESS_JSON {
|
||||
const GAME_BLACK = 'black';
|
||||
const GAME_ECO = 'black';
|
||||
|
||||
const PGN_KEY_ACTION_ARROW = "ar";
|
||||
const PGN_KEY_ACTION_HIGHLIGHT = "hl";
|
||||
|
||||
|
||||
protected static $jsKeys = array('MOVE_FROM', 'MOVE_TO', 'MOVE_NOTATION', 'FEN','MOVE_COMMENT',
|
||||
'MOVE_ACTION', 'MOVE_VARIATIONS', 'MOVE_MOVES','MOVE_CAPTURE','MOVE_PROMOTE_TO','MOVE_CASTLE',
|
||||
|
Reference in New Issue
Block a user