Governance Implementation

This commit is contained in:
Luis Fernando Molina committed 2021-06-02 22:26:18 +02:00
1 parent 316562ef7b
commit 612b9f30ee
3 files changed
+71 -14

No files matched your search

@@ -1,5 +1,5 @@
function newGovernanceUserContributionsSpace() {
const MODULE_NAME = 'User Contributions Space'
function newGovernanceUserFeaturesSpace() {
const MODULE_NAME = 'Features Space'
let thisObject = {
container: undefined,
@@ -0,0 +1,44 @@
function newGovernanceUserProfileSpace() {
const MODULE_NAME = 'User Profile Space'
let thisObject = {
container: undefined,
physics: physics,
draw: draw,
getContainer: getContainer,
finalize: finalize,
initialize: initialize
}
thisObject.container = newContainer()
thisObject.container.initialize(MODULE_NAME)
return thisObject
function finalize() {
thisObject.container.finalize()
thisObject.container = undefined
}
function initialize() {
}
function physics() {
}
function getContainer(point) {
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
thisObject.container.space = MODULE_NAME
return thisObject.container
} else {
return undefined
}
}
function draw() {
}
}
+25 -12
View File
@@ -1010,10 +1010,10 @@
],
"spaces": [
{
"name": "Assets Space",
"folderName": "Assets-Space",
"propertyName": "assetsSpace",
"functionName": "newGobernanceAssetsSpace",
"name": "User Profile Space",
"folderName": "User-Profile-Space",
"propertyName": "userProfileSpace",
"functionName": "newGovernanceUserProfileSpace",
"initializationIndex": 0,
"animationPhysicsIndex": 0,
"animationDrawIndex": 0,
@@ -1023,10 +1023,10 @@
"onMouseDownIndex": 0
},
{
"name": "Ranking Space",
"folderName": "Ranking-Space",
"propertyName": "rankingSpace",
"functionName": "newGovernanceRankingSpace",
"name": "Assets Space",
"folderName": "Assets-Space",
"propertyName": "assetsSpace",
"functionName": "newGobernanceAssetsSpace",
"initializationIndex": 1,
"animationPhysicsIndex": 1,
"animationDrawIndex": 1,
@@ -1036,10 +1036,10 @@
"onMouseDownIndex": 1
},
{
"name": "User Contributions Space",
"folderName": "User-Contributions-Space",
"propertyName": "userContributionsSpace",
"functionName": "newGovernanceUserContributionsSpace",
"name": "User Features Space",
"folderName": "User-Features-Space",
"propertyName": "userFeaturesSpace",
"functionName": "newGovernanceUserFeaturesSpace",
"initializationIndex": 2,
"animationPhysicsIndex": 2,
"animationDrawIndex": 2,
@@ -1047,6 +1047,19 @@
"onMouseOverIndex": 2,
"onMouseClickIndex": 2,
"onMouseDownIndex": 2
},
{
"name": "Ranking Space",
"folderName": "Ranking-Space",
"propertyName": "rankingSpace",
"functionName": "newGovernanceRankingSpace",
"initializationIndex": 3,
"animationPhysicsIndex": 3,
"animationDrawIndex": 3,
"onMouseWheelIndex": 3,
"onMouseOverIndex": 3,
"onMouseClickIndex": 3,
"onMouseDownIndex": 3
}
]
},