behave-graph
Advanced tools
Comparing version 0.6.1 to 0.6.2
import { EventEmitter } from '../../lib/Events/EventEmitter.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Providers/IScene.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Abstractions/IScene.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -4,0 +4,0 @@ export declare class DummyScene implements IScene { |
@@ -11,6 +11,6 @@ import { promises as fs } from 'node:fs'; | ||
import { parseSafeFloat } from '../../lib/parseFloats.js'; | ||
import { DefaultLogger } from '../../lib/Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
import { registerCoreProfile } from '../../lib/Profiles/Core/registerCoreProfile.js'; | ||
import { registerSceneProfile } from '../../lib/Profiles/Scene/registerSceneProfile.js'; | ||
import { DefaultLogger } from '../../lib/Providers/Implementations/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -33,9 +33,8 @@ import { validateRegistry } from '../../lib/validateRegistry.js'; | ||
registerSceneProfile(registry); | ||
registry.implementations.register('ILogger', new DefaultLogger()); | ||
registry.abstractions.register('ILogger', new DefaultLogger()); | ||
const manualLifecycleEventEmitter = new ManualLifecycleEventEmitter(); | ||
registry.implementations.register('ILifecycleEventEmitter', manualLifecycleEventEmitter); | ||
registry.implementations.register('IScene', new DummyScene(registry)); | ||
registry.abstractions.register('ILifecycleEventEmitter', manualLifecycleEventEmitter); | ||
registry.abstractions.register('IScene', new DummyScene(registry)); | ||
const jsonPattern = program.args[0]; | ||
glob(jsonPattern, {}, async (err, matches) => { | ||
console.log(matches); | ||
for (let i = 0; i < matches.length; i++) { | ||
@@ -42,0 +41,0 @@ const graphJsonPath = matches[i]; |
@@ -9,6 +9,6 @@ import * as THREE from 'three'; | ||
import { validateGraph } from '../../lib/Graphs/Validation/validateGraph.js'; | ||
import { DefaultLogger } from '../../lib/Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
import { registerCoreProfile } from '../../lib/Profiles/Core/registerCoreProfile.js'; | ||
import { registerSceneProfile } from '../../lib/Profiles/Scene/registerSceneProfile.js'; | ||
import { DefaultLogger } from '../../lib/Providers/Implementations/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -88,3 +88,3 @@ import { validateRegistry } from '../../lib/validateRegistry.js'; | ||
}); | ||
registry.implementations.register('IScene', threeScene); | ||
registry.abstractions.register('IScene', threeScene); | ||
render(); | ||
@@ -100,5 +100,5 @@ const controls = new OrbitControls(camera, renderer.domElement); | ||
const graphEvaluator = new GraphEvaluator(graph); | ||
registry.implementations.register('ILogger', new DefaultLogger()); | ||
registry.abstractions.register('ILogger', new DefaultLogger()); | ||
const manualLifecycleEventEmitter = new ManualLifecycleEventEmitter(); | ||
registry.implementations.register('ILifecycleEventEmitter', manualLifecycleEventEmitter); | ||
registry.abstractions.register('ILifecycleEventEmitter', manualLifecycleEventEmitter); | ||
Logger.verbose('initialize graph'); | ||
@@ -105,0 +105,0 @@ await graphEvaluator.executeAll(); |
import { Object3D } from 'three'; | ||
import { EventEmitter } from '../../lib/Events/EventEmitter.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Providers/IScene.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Abstractions/IScene.js'; | ||
import { GLTFJson } from './GLTFJson.js'; | ||
@@ -5,0 +5,0 @@ export declare class ThreeScene implements IScene { |
@@ -5,6 +5,6 @@ import * as THREEIFY from 'threeify'; | ||
import { readGraphFromJSON } from '../../lib/Graphs/IO/readGraphFromJSON.js'; | ||
import { DefaultLogger } from '../../lib/Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
import { registerCoreProfile } from '../../lib/Profiles/Core/registerCoreProfile.js'; | ||
import { registerSceneProfile } from '../../lib/Profiles/Scene/registerSceneProfile.js'; | ||
import { DefaultLogger } from '../../lib/Providers/Implementations/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -17,5 +17,5 @@ async function main() { | ||
registerSceneProfile(registry); | ||
registry.implementations.register('ILogger', new DefaultLogger()); | ||
registry.abstractions.register('ILogger', new DefaultLogger()); | ||
const manualLifecycleEventEmitter = new ManualLifecycleEventEmitter(); | ||
registry.implementations.register('ILifecycleEventEmitter', manualLifecycleEventEmitter); | ||
registry.abstractions.register('ILifecycleEventEmitter', manualLifecycleEventEmitter); | ||
const graphJsonPath = '/dist/graphs/core/HelloWorld.json'; | ||
@@ -22,0 +22,0 @@ if (graphJsonPath === undefined) { |
@@ -32,12 +32,12 @@ export * from './Events/EventEmitter.js'; | ||
export * from './Graphs/IO/NodeSpecJSON.js'; | ||
export * from './Providers/ImplementationRegistry.js'; | ||
export * from './Providers/Implementations/DefaultLogger.js'; | ||
export * from './Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
export * from './Abstractions/AbstractionsRegistry.js'; | ||
export * from './Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
export * from './Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Actions/SetVariable.js'; | ||
export * from './Profiles/Core/Queries/GetVariable.js'; | ||
export * from './Profiles/Core/Events/OnVariableChanged.js'; | ||
export * from './Profiles/Core/Providers/ILifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Providers/ILogger.js'; | ||
export * from './Profiles/Core/Abstractions/ILifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Abstractions/ILogger.js'; | ||
export * from './Profiles/Core/registerCoreProfile.js'; | ||
export * from './Profiles/Scene/Providers/IScene.js'; | ||
export * from './Profiles/Scene/Abstractions/IScene.js'; | ||
export * from './Profiles/Scene/Values/Vec2.js'; | ||
@@ -44,0 +44,0 @@ export * from './Profiles/Scene/Values/Vec3.js'; |
@@ -32,12 +32,12 @@ export * from './Events/EventEmitter.js'; | ||
export * from './Graphs/IO/NodeSpecJSON.js'; | ||
export * from './Providers/ImplementationRegistry.js'; | ||
export * from './Providers/Implementations/DefaultLogger.js'; | ||
export * from './Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
export * from './Abstractions/AbstractionsRegistry.js'; | ||
export * from './Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
export * from './Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Actions/SetVariable.js'; | ||
export * from './Profiles/Core/Queries/GetVariable.js'; | ||
export * from './Profiles/Core/Events/OnVariableChanged.js'; | ||
export * from './Profiles/Core/Providers/ILifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Providers/ILogger.js'; | ||
export * from './Profiles/Core/Abstractions/ILifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Abstractions/ILogger.js'; | ||
export * from './Profiles/Core/registerCoreProfile.js'; | ||
export * from './Profiles/Scene/Providers/IScene.js'; | ||
export * from './Profiles/Scene/Abstractions/IScene.js'; | ||
export * from './Profiles/Scene/Values/Vec2.js'; | ||
@@ -44,0 +44,0 @@ export * from './Profiles/Scene/Values/Vec3.js'; |
@@ -6,3 +6,3 @@ import { Node } from '../../../Nodes/Node.js'; | ||
super('Action', 'action/log', [new Socket('flow', 'flow'), new Socket('string', 'text')], [new Socket('flow', 'flow')], (context) => { | ||
const logger = context.graph.registry.implementations.get('ILogger'); | ||
const logger = context.graph.registry.abstractions.get('ILogger'); | ||
logger.info(context.readInput('text')); | ||
@@ -9,0 +9,0 @@ }); |
@@ -9,3 +9,3 @@ import { Node } from '../../../Nodes/Node.js'; | ||
}; | ||
const lifecycleEvents = context.graph.registry.implementations.get('ILifecycleEventEmitter'); | ||
const lifecycleEvents = context.graph.registry.abstractions.get('ILifecycleEventEmitter'); | ||
lifecycleEvents.endEvent.addListener(onEndEvent); | ||
@@ -12,0 +12,0 @@ context.onAsyncCancelled.addListener(() => { |
@@ -9,3 +9,3 @@ import { Node } from '../../../Nodes/Node.js'; | ||
}; | ||
const lifecycleEvents = context.graph.registry.implementations.get('ILifecycleEventEmitter'); | ||
const lifecycleEvents = context.graph.registry.abstractions.get('ILifecycleEventEmitter'); | ||
lifecycleEvents.startEvent.addListener(onStartEvent); | ||
@@ -12,0 +12,0 @@ context.onAsyncCancelled.addListener(() => { |
@@ -19,3 +19,3 @@ import { Node } from '../../../Nodes/Node.js'; | ||
}; | ||
const lifecycleEvents = context.graph.registry.implementations.get('ILifecycleEventEmitter'); | ||
const lifecycleEvents = context.graph.registry.abstractions.get('ILifecycleEventEmitter'); | ||
lifecycleEvents.tickEvent.addListener(onTickEvent); | ||
@@ -22,0 +22,0 @@ context.onAsyncCancelled.addListener(() => { |
@@ -10,3 +10,3 @@ import { Node } from '../../../Nodes/Node.js'; | ||
], [new Socket('flow', 'flow')], (context) => { | ||
const scene = context.graph.registry.implementations.get('IScene'); | ||
const scene = context.graph.registry.abstractions.get('IScene'); | ||
const value = context.readInput('value'); | ||
@@ -13,0 +13,0 @@ scene.setProperty(context.readInput('jsonPath'), valueTypeName, value); |
@@ -6,3 +6,3 @@ import { Node } from '../../../Nodes/Node.js'; | ||
super('Query', nodeName, [new Socket('flow', 'flow'), new Socket('string', 'jsonPath')], [new Socket('flow', 'flow'), new Socket(valueTypeName, 'value')], (context) => { | ||
const sceneGraph = context.graph.registry.implementations.get('IScene'); | ||
const sceneGraph = context.graph.registry.abstractions.get('IScene'); | ||
context.writeOutput('value', sceneGraph.getProperty(context.readInput('jsonPath'), valueTypeName)); | ||
@@ -9,0 +9,0 @@ }); |
@@ -0,6 +1,6 @@ | ||
import { AbstractionsRegistry } from './Abstractions/AbstractionsRegistry.js'; | ||
import { NodeTypeRegistry } from './Nodes/NodeTypeRegistry.js'; | ||
import { ImplementationRegistry } from './Providers/ImplementationRegistry.js'; | ||
import { ValueTypeRegistry } from './Values/ValueTypeRegistry.js'; | ||
export declare class Registry { | ||
readonly implementations: ImplementationRegistry; | ||
readonly abstractions: AbstractionsRegistry; | ||
readonly values: ValueTypeRegistry; | ||
@@ -7,0 +7,0 @@ readonly nodes: NodeTypeRegistry; |
@@ -0,7 +1,7 @@ | ||
import { AbstractionsRegistry } from './Abstractions/AbstractionsRegistry.js'; | ||
import { NodeTypeRegistry } from './Nodes/NodeTypeRegistry.js'; | ||
import { ImplementationRegistry } from './Providers/ImplementationRegistry.js'; | ||
import { ValueTypeRegistry } from './Values/ValueTypeRegistry.js'; | ||
export class Registry { | ||
constructor() { | ||
this.implementations = new ImplementationRegistry(); | ||
this.abstractions = new AbstractionsRegistry(); | ||
this.values = new ValueTypeRegistry(); | ||
@@ -8,0 +8,0 @@ this.nodes = new NodeTypeRegistry(); |
{ | ||
"name": "behave-graph", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Simple, extensible behavior graph engine", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -13,2 +13,9 @@ # Behave-Graph | ||
## Documentation | ||
* [Extending the Value System](/docs/Values.md) | ||
* [Declaring Nodes](/docs/DeclaringNodes.md) | ||
* [Execution Model](/docs/GraphExecution.md) | ||
* [Abstractions and Drivers](/docs/Abstractions.md) | ||
## Community Resources | ||
@@ -15,0 +22,0 @@ |
import { EventEmitter } from '../../lib/Events/EventEmitter.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Providers/IScene.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Abstractions/IScene.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -4,0 +4,0 @@ |
@@ -13,6 +13,6 @@ import { promises as fs } from 'node:fs'; | ||
import { parseSafeFloat } from '../../lib/parseFloats.js'; | ||
import { DefaultLogger } from '../../lib/Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
import { registerCoreProfile } from '../../lib/Profiles/Core/registerCoreProfile.js'; | ||
import { registerSceneProfile } from '../../lib/Profiles/Scene/registerSceneProfile.js'; | ||
import { DefaultLogger } from '../../lib/Providers/Implementations/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -44,9 +44,9 @@ import { validateRegistry } from '../../lib/validateRegistry.js'; | ||
registry.implementations.register('ILogger', new DefaultLogger()); | ||
registry.abstractions.register('ILogger', new DefaultLogger()); | ||
const manualLifecycleEventEmitter = new ManualLifecycleEventEmitter(); | ||
registry.implementations.register( | ||
registry.abstractions.register( | ||
'ILifecycleEventEmitter', | ||
manualLifecycleEventEmitter | ||
); | ||
registry.implementations.register('IScene', new DummyScene(registry)); | ||
registry.abstractions.register('IScene', new DummyScene(registry)); | ||
@@ -56,3 +56,2 @@ const jsonPattern = program.args[0]; | ||
glob(jsonPattern, {}, async (err, matches) => { | ||
console.log(matches); | ||
for (let i = 0; i < matches.length; i++) { | ||
@@ -59,0 +58,0 @@ const graphJsonPath = matches[i]; |
@@ -11,6 +11,6 @@ /* eslint-disable no-param-reassign */ | ||
import { validateGraph } from '../../lib/Graphs/Validation/validateGraph.js'; | ||
import { DefaultLogger } from '../../lib/Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
import { registerCoreProfile } from '../../lib/Profiles/Core/registerCoreProfile.js'; | ||
import { registerSceneProfile } from '../../lib/Profiles/Scene/registerSceneProfile.js'; | ||
import { DefaultLogger } from '../../lib/Providers/Implementations/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -117,3 +117,3 @@ import { validateRegistry } from '../../lib/validateRegistry.js'; | ||
}); | ||
registry.implementations.register('IScene', threeScene); | ||
registry.abstractions.register('IScene', threeScene); | ||
@@ -135,5 +135,5 @@ render(); | ||
registry.implementations.register('ILogger', new DefaultLogger()); | ||
registry.abstractions.register('ILogger', new DefaultLogger()); | ||
const manualLifecycleEventEmitter = new ManualLifecycleEventEmitter(); | ||
registry.implementations.register( | ||
registry.abstractions.register( | ||
'ILifecycleEventEmitter', | ||
@@ -140,0 +140,0 @@ manualLifecycleEventEmitter |
@@ -12,3 +12,3 @@ import { | ||
import { EventEmitter } from '../../lib/Events/EventEmitter.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Providers/IScene.js'; | ||
import { IScene } from '../../lib/Profiles/Scene/Abstractions/IScene.js'; | ||
import { Vec2 } from '../../lib/Profiles/Scene/Values/Vec2.js'; | ||
@@ -15,0 +15,0 @@ import { Vec3 } from '../../lib/Profiles/Scene/Values/Vec3.js'; |
@@ -6,6 +6,6 @@ import * as THREEIFY from 'threeify'; | ||
import { readGraphFromJSON } from '../../lib/Graphs/IO/readGraphFromJSON.js'; | ||
import { DefaultLogger } from '../../lib/Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
import { registerCoreProfile } from '../../lib/Profiles/Core/registerCoreProfile.js'; | ||
import { registerSceneProfile } from '../../lib/Profiles/Scene/registerSceneProfile.js'; | ||
import { DefaultLogger } from '../../lib/Providers/Implementations/DefaultLogger.js'; | ||
import { ManualLifecycleEventEmitter } from '../../lib/Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
import { Registry } from '../../lib/Registry.js'; | ||
@@ -21,5 +21,5 @@ | ||
registry.implementations.register('ILogger', new DefaultLogger()); | ||
registry.abstractions.register('ILogger', new DefaultLogger()); | ||
const manualLifecycleEventEmitter = new ManualLifecycleEventEmitter(); | ||
registry.implementations.register( | ||
registry.abstractions.register( | ||
'ILifecycleEventEmitter', | ||
@@ -26,0 +26,0 @@ manualLifecycleEventEmitter |
@@ -46,6 +46,6 @@ export * from './Events/EventEmitter.js'; | ||
export * from './Providers/ImplementationRegistry.js'; | ||
export * from './Abstractions/AbstractionsRegistry.js'; | ||
export * from './Providers/Implementations/DefaultLogger.js'; | ||
export * from './Providers/Implementations/ManualLifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Abstractions/Drivers/DefaultLogger.js'; | ||
export * from './Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js'; | ||
@@ -57,4 +57,4 @@ // core profile | ||
export * from './Profiles/Core/Events/OnVariableChanged.js'; | ||
export * from './Profiles/Core/Providers/ILifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Providers/ILogger.js'; | ||
export * from './Profiles/Core/Abstractions/ILifecycleEventEmitter.js'; | ||
export * from './Profiles/Core/Abstractions/ILogger.js'; | ||
export * from './Profiles/Core/registerCoreProfile.js'; | ||
@@ -64,3 +64,3 @@ | ||
export * from './Profiles/Scene/Providers/IScene.js'; | ||
export * from './Profiles/Scene/Abstractions/IScene.js'; | ||
export * from './Profiles/Scene/Values/Vec2.js'; | ||
@@ -67,0 +67,0 @@ export * from './Profiles/Scene/Values/Vec3.js'; |
import { Node } from '../../../Nodes/Node.js'; | ||
import { NodeEvalContext } from '../../../Nodes/NodeEvalContext.js'; | ||
import { Socket } from '../../../Sockets/Socket.js'; | ||
import { ILogger } from '../Providers/ILogger.js'; | ||
import { ILogger } from '../Abstractions/ILogger.js'; | ||
@@ -15,3 +15,3 @@ export class Log extends Node { | ||
const logger = | ||
context.graph.registry.implementations.get<ILogger>('ILogger'); | ||
context.graph.registry.abstractions.get<ILogger>('ILogger'); | ||
logger.info(context.readInput('text')); | ||
@@ -18,0 +18,0 @@ } |
import { Node } from '../../../Nodes/Node.js'; | ||
import { NodeEvalContext } from '../../../Nodes/NodeEvalContext.js'; | ||
import { Socket } from '../../../Sockets/Socket.js'; | ||
import { ILifecycleEventEmitter } from '../Providers/ILifecycleEventEmitter.js'; | ||
import { ILifecycleEventEmitter } from '../Abstractions/ILifecycleEventEmitter.js'; | ||
@@ -20,3 +20,3 @@ // inspired by: https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Events/ | ||
const lifecycleEvents = | ||
context.graph.registry.implementations.get<ILifecycleEventEmitter>( | ||
context.graph.registry.abstractions.get<ILifecycleEventEmitter>( | ||
'ILifecycleEventEmitter' | ||
@@ -23,0 +23,0 @@ ); |
import { Node } from '../../../Nodes/Node.js'; | ||
import { NodeEvalContext } from '../../../Nodes/NodeEvalContext.js'; | ||
import { Socket } from '../../../Sockets/Socket.js'; | ||
import { ILifecycleEventEmitter } from '../Providers/ILifecycleEventEmitter.js'; | ||
import { ILifecycleEventEmitter } from '../Abstractions/ILifecycleEventEmitter.js'; | ||
@@ -20,3 +20,3 @@ // inspired by: https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Events/ | ||
const lifecycleEvents = | ||
context.graph.registry.implementations.get<ILifecycleEventEmitter>( | ||
context.graph.registry.abstractions.get<ILifecycleEventEmitter>( | ||
'ILifecycleEventEmitter' | ||
@@ -23,0 +23,0 @@ ); |
import { Node } from '../../../Nodes/Node.js'; | ||
import { NodeEvalContext } from '../../../Nodes/NodeEvalContext.js'; | ||
import { Socket } from '../../../Sockets/Socket.js'; | ||
import { ILifecycleEventEmitter } from '../Providers/ILifecycleEventEmitter.js'; | ||
import { ILifecycleEventEmitter } from '../Abstractions/ILifecycleEventEmitter.js'; | ||
@@ -30,3 +30,3 @@ // inspired by: https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Events/ | ||
const lifecycleEvents = | ||
context.graph.registry.implementations.get<ILifecycleEventEmitter>( | ||
context.graph.registry.abstractions.get<ILifecycleEventEmitter>( | ||
'ILifecycleEventEmitter' | ||
@@ -33,0 +33,0 @@ ); |
import { Node } from '../../../Nodes/Node.js'; | ||
import { Socket } from '../../../Sockets/Socket.js'; | ||
import { IScene } from '../Providers/IScene.js'; | ||
import { IScene } from '../Abstractions/IScene.js'; | ||
@@ -17,4 +17,3 @@ export class SetSceneProperty extends Node { | ||
(context) => { | ||
const scene = | ||
context.graph.registry.implementations.get<IScene>('IScene'); | ||
const scene = context.graph.registry.abstractions.get<IScene>('IScene'); | ||
const value = context.readInput('value'); | ||
@@ -21,0 +20,0 @@ scene.setProperty(context.readInput('jsonPath'), valueTypeName, value); |
import { Node } from '../../../Nodes/Node.js'; | ||
import { Socket } from '../../../Sockets/Socket.js'; | ||
import { IScene } from '../Providers/IScene.js'; | ||
import { IScene } from '../Abstractions/IScene.js'; | ||
@@ -14,3 +14,3 @@ export class GetSceneProperty extends Node { | ||
const sceneGraph = | ||
context.graph.registry.implementations.get<IScene>('IScene'); | ||
context.graph.registry.abstractions.get<IScene>('IScene'); | ||
context.writeOutput( | ||
@@ -17,0 +17,0 @@ 'value', |
@@ -0,9 +1,9 @@ | ||
import { AbstractionsRegistry } from './Abstractions/AbstractionsRegistry.js'; | ||
import { NodeTypeRegistry } from './Nodes/NodeTypeRegistry.js'; | ||
import { ImplementationRegistry } from './Providers/ImplementationRegistry.js'; | ||
import { ValueTypeRegistry } from './Values/ValueTypeRegistry.js'; | ||
export class Registry { | ||
public readonly implementations = new ImplementationRegistry(); | ||
public readonly abstractions = new AbstractionsRegistry(); | ||
public readonly values = new ValueTypeRegistry(); | ||
public readonly nodes = new NodeTypeRegistry(); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2873808
606
17590
821