author: bocianu bocianu@gmail.com
Set of procedures to communicate with Hi Score Cafe server https://xxl.atari.pl/hsc/ using #FujiNet interface on SIO level. https://fujinet.online/
This library is a part of 'blibs' - set of custom Mad-Pascal libraries.
https://gitlab.com/bocianu/blibs
name: | type: | description: |
---|---|---|
boardSize | word | Number of bytes received during last HSC_Get command |
name: | description: |
---|---|
HSC_MakeToken | procedure HSC_MakeToken(id:word;score:cardinal;var hscToken:AOC);Creates request token consisting game id and score.
parameters: |
HSC_Send | function HSC_Send(var hscToken:AOC;var hscBuffer:AOC):byte;overload;Sends tokenized user result to Hi Score Cafe server. Function checks if fujinet is present, then checks for autorization token on SD card, and then tries to send user result to HSC.
parameters:returns: |
HSC_Send | function HSC_Send(id:word;score:cardinal;var hscBuffer:AOC):byte;overload;Sends user result to Hi Score Cafe server. Function checks if fujinet is present, then checks for autorization token on SD card, and then tries to send user result to HSC.
parameters:returns: |
HSC_Get_Formated | function HSC_Get_Formated(id:byte;buff:pointer):byte;overload;Receives screen formated hi score table for specified game, and stores it in buffer. Result is formated as 40 chars aligned text, in ANTIC screen codes. It can be directly written to screen memory.
parameters:returns: |
HSC_Get | function HSC_Get(id:byte;buff:pointer):byte;overload;Receives hi score table for specified game, and stores it in buffer. Result is a text block, formated as JSON array, in clean ATASCII. It should be parsed by user before displaying.
parameters:returns: |