core: split: game and pong

This commit is contained in:
2024-04-05 17:47:17 +02:00
parent c49e721e5a
commit f6f59f8ead
34 changed files with 965 additions and 784 deletions

View File

@ -0,0 +1,32 @@
import { AExchangeable } from "../../AExchangable.js";
class Point extends AExchangeable
{
/**
* @param {Number} x
* @param {Number} y
*/
constructor(x, y)
{
super();
/**
* @type {Number}
*/
this.x = x;
/**
* @type {Number}
*/
this.y = y;
}
/**
* @type {[String]}
*/
export(additionalFieldList)
{
super.export([...additionalFieldList, "x", "y"])
}
}
export { Point };