Skip to content

feat: implement component name storage for debugging and reflection #381

@coderabbitai

Description

@coderabbitai

Objective

Implement storage and usage of the component name parameter in NxRegisterComponent function for debugging and reflection purposes.

Acceptance Criteria

  • Store component names when registering components via NxRegisterComponent
  • Provide API to retrieve component names by type ID for debugging
  • Update logging and error messages to include component names where applicable
  • Add reflection capabilities to query registered component names
  • Remove the TODO comment once implementation is complete

Dependencies

None - this is a standalone enhancement to the existing component registration system.

Technical Details

Environment: NexoEngine ECS system
Components:

  • File: engine/src/scripting/native/NativeApi.cpp (lines 88-93)
  • Function: NxRegisterComponent(const char* name, const UInt64 size)
  • Current status: name parameter is unused with TODO comment

Resources:

  • Component registration system in Coordinator class
  • Native API functions for managed/native interop
  • Component type management infrastructure

References:

Metadata

Metadata

Assignees

Labels

ecsThis issue concerns the ECS part of the engineenhancementNew feature or requestscriptingThis issue concerns the scripting part of the engine

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions