components

package
v1.207.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package components はコアエンジンコンポーネントの定義を提供する。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentInitializer

type ComponentInitializer interface {
	InitializeComponents(world *ecs.World) error
}

ComponentInitializer はコンポーネントの初期化を行うインターフェース

type Components

type Components[T ComponentInitializer] struct {
	Game T
}

Components はジェネリクス型を使用した型安全な実装

func InitComponents

func InitComponents[T ComponentInitializer](world *ecs.World, gameComponents T) (*Components[T], error)

InitComponents はジェネリクス型を使用した型安全な実装

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL