ZComponentData

abstract class ZComponentData : ZLoggable, ZRef(source)

Represents an abstract base class for data objects associated with components in the Zernikalos Engine.

This class provides a mechanism to calculate and cache a unique reference identifier (refId) for the data object, facilitating its usage in serialization, reference management, and other engine functionalities. The refId is computed lazily based on the object's string representation.

Implementations of this class are commonly used as data containers in component-based architectures within the engine. These subclasses should define specific data structures and properties related to their components.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@Transient
open override val refId: String

Represents the unique identifier for a reference-based component. The refId is used as a distinctive key for retrieving or linking this component within reference-dependent systems.

Functions

Link copied to clipboard
abstract override fun toString(): String