Support for arrow and highlight actions in pgn

This commit is contained in:
DHTMLGoodies
2017-03-29 18:48:07 +02:00
parent 126dc9b599
commit 40a19a7551
5 changed files with 634 additions and 3 deletions

View File

@@ -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',