annotation

This commit is contained in:
2024-11-27 18:10:09 +02:00
parent ad4eef17f5
commit 824249ed75
3 changed files with 14 additions and 21 deletions
+3 -15
View File
@@ -78,22 +78,10 @@ class Game {
name = null;
/**
* Game formal description
* @type {GameDefinition}
* Game scenario
* @type { Scenario }
*/
definition = {
levels:[
{
name: 'Level 1',
environment: null,
objects:[
{
id: 15
}
]
}
]
};
scenario = null;
}
export { GamesManager }
+10 -5
View File
@@ -151,17 +151,22 @@ class GameAction {
* Result associated to game action
*/
class GameActionResult{
pointsRuleDefinition = null;
/**
* Applied rules to the specific result
* @type Rule[]
*/
rules = []
/**
* Scenario name
* @type {string}
* @type string
*/
name = null;
/**
* Scenario name
* @type {string}
* @type string
*/
description = null;
}
@@ -172,13 +177,13 @@ class GameActionResult{
class InventoryItem {
/**
* Scenario name
* @type {string}
* @type string
*/
name = null;
/**
* Scenario name
* @type {string}
* @type string
*/
description = null;
}