Documentation ¶
Index ¶
- Variables
- func ComponentWith(name, script string, nonRemovable bool, extra ...map[string]any) pt.ComponentAttribute
- func ComponentWithT[T any](name, script string, nonRemovable bool, extra ...map[string]any) pt.ComponentAttribute
- func EntityWith(prototype, script string, scope *ec.Scope, ...) pt.EntityAttribute
- func EntityWithT[T any](prototype, script string, scope *ec.Scope, ...) pt.EntityAttribute
- type Component
- type ComponentEnableLateUpdate
- type ComponentEnableUpdate
- type ComponentEnableUpdateAndLateUpdate
- type Entity
- type EntityEnableLateUpdate
- type EntityEnableUpdate
- type EntityEnableUpdateAndLateUpdate
- type IScript
- type LoadedCB
- type LoadingCB
- type ScriptOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = self.Name Using = self.Using Install = self.Install Uninstall = self.Uninstall )
View Source
var With _Option
Functions ¶
func ComponentWith ¶
func ComponentWith(name, script string, nonRemovable bool, extra ...map[string]any) pt.ComponentAttribute
ComponentWith 创建脚本化组件原型属性,用于注册实体原型时自定义相关属性
func ComponentWithT ¶
func ComponentWithT[T any](name, script string, nonRemovable bool, extra ...map[string]any) pt.ComponentAttribute
ComponentWithT 创建脚本化组件原型属性,用于注册实体原型时自定义相关属性
func EntityWith ¶ added in v0.1.28
func EntityWith(prototype, script string, scope *ec.Scope, componentAwakeOnFirstTouch, componentUniqueID *bool, extra ...map[string]any) pt.EntityAttribute
EntityWith 创建脚本化实体原型属性,用于注册实体原型时自定义相关属性
Types ¶
type ComponentEnableLateUpdate ¶
type ComponentEnableLateUpdate struct {
Component
}
ComponentEnableLateUpdate 脚本化组件,支持LateUpdate
func (*ComponentEnableLateUpdate) LateUpdate ¶
func (c *ComponentEnableLateUpdate) LateUpdate()
LateUpdate 生命周期LateUpdate
type ComponentEnableUpdate ¶
type ComponentEnableUpdate struct {
Component
}
ComponentEnableUpdate 脚本化组件,支持Update
type ComponentEnableUpdateAndLateUpdate ¶
type ComponentEnableUpdateAndLateUpdate struct {
Component
}
ComponentEnableUpdateAndLateUpdate 脚本化组件,支持Update、LateUpdate
func (*ComponentEnableUpdateAndLateUpdate) LateUpdate ¶
func (c *ComponentEnableUpdateAndLateUpdate) LateUpdate()
LateUpdate 生命周期LateUpdate
func (*ComponentEnableUpdateAndLateUpdate) Update ¶
func (c *ComponentEnableUpdateAndLateUpdate) Update()
Update 生命周期Update
type Entity ¶ added in v0.1.28
type Entity struct {
framework.EntityBehavior
}
Entity 脚本化实体
type EntityEnableLateUpdate ¶ added in v0.1.28
type EntityEnableLateUpdate struct {
Entity
}
EntityEnableLateUpdate 脚本化实体,支持LateUpdate
func (*EntityEnableLateUpdate) LateUpdate ¶ added in v0.1.28
func (c *EntityEnableLateUpdate) LateUpdate()
LateUpdate 生命周期LateUpdate
type EntityEnableUpdate ¶ added in v0.1.28
type EntityEnableUpdate struct {
Entity
}
EntityEnableUpdate 脚本化实体,支持Update
func (*EntityEnableUpdate) Update ¶ added in v0.1.28
func (c *EntityEnableUpdate) Update()
Update 生命周期Update
type EntityEnableUpdateAndLateUpdate ¶ added in v0.1.28
type EntityEnableUpdateAndLateUpdate struct {
Entity
}
EntityEnableUpdateAndLateUpdate 脚本化实体,支持Update、LateUpdate
func (*EntityEnableUpdateAndLateUpdate) LateUpdate ¶ added in v0.1.28
func (c *EntityEnableUpdateAndLateUpdate) LateUpdate()
LateUpdate 生命周期LateUpdate
func (*EntityEnableUpdateAndLateUpdate) Update ¶ added in v0.1.28
func (c *EntityEnableUpdateAndLateUpdate) Update()
Update 生命周期Update
Click to show internal directories.
Click to hide internal directories.