-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scene, flow and graph-editor compile and run, but are not complete.
- Loading branch information
Showing
14 changed files
with
2,386 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/core/src/Variables/Variable.ts → ...ges/core/src/Values/Variables/Variable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
import { | ||
DefaultLogger, | ||
getCoreNodeDefinitions, | ||
getCoreValueTypes, | ||
ManualLifecycleEventEmitter, | ||
NodeSpecJSON, | ||
registerCoreProfile, | ||
registerSceneProfile, | ||
Registry, | ||
writeNodeSpecsToJSON | ||
} from '@behave-graph/core'; | ||
|
||
let nodeSpecJSON: NodeSpecJSON[] | undefined = undefined; | ||
|
||
export const getNodeSpecJSON = (): NodeSpecJSON[] => { | ||
if (nodeSpecJSON === undefined) { | ||
const registry = new Registry(); | ||
registerCoreProfile(registry); | ||
registerSceneProfile(registry); | ||
nodeSpecJSON = writeNodeSpecsToJSON(registry); | ||
const lifecycleEventEmitter = new ManualLifecycleEventEmitter(); | ||
const logger = new DefaultLogger(); | ||
const valueTypeMap = getCoreValueTypes(); | ||
const nodeDefinitionMap = getCoreNodeDefinitions(valueTypeMap); | ||
nodeSpecJSON = writeNodeSpecsToJSON({ | ||
nodes: nodeDefinitionMap, | ||
values: valueTypeMap, | ||
dependencies: { | ||
logger, | ||
lifecycleEventEmitter | ||
} | ||
}); | ||
} | ||
return nodeSpecJSON; | ||
}; |
Oops, something went wrong.