I have the following type:
我有以下类型:
type entity struct {
components []Component
}
func NewEntity(componentsLength ComponentType) Entity {
return &entity{
components: make([]Component, componentsLength),
}
}
type entI have the following type:
我有以下类型:
type entity struct {
components []Component
}
func NewEntity(componentsLength ComponentType) Entity {
return &entity{
components: make([]Component, componentsLength),
}
}
type ent