Documentation ¶
Index ¶
- type Character
- func (c *Character) GetCharacterAttachmentComponent() *component.CharacterAttachmentComponent
- func (c *Character) GetCharacterSpriteRenderInfoComponent() *component.CharacterSpriteRenderInfoComponent
- func (c *Character) GetCharacterStateComponent() *component.CharacterStateComponent
- func (c *Character) SetCharacterAttachmentComponent(component *component.CharacterAttachmentComponent)
- func (c *Character) SetCharacterStateComponent(component *component.CharacterStateComponent)
- func (c *Character) SetState(state statetype.Type)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct { *graphic.Transform *ecs.BasicEntity *component.CharacterAttachmentComponent *component.CharacterStateComponent *component.CharacterSpriteRenderInfoComponent HeadIndex character.HeadIndex Gender character.GenderType JobSpriteID jobspriteid.Type IsMounted bool MovementSpeed float64 HasShield bool ShieldSpriteName string }
func NewCharacter ¶
func NewCharacter(gender character.GenderType, jobSpriteID jobspriteid.Type, headIndex character.HeadIndex) *Character
func (*Character) GetCharacterAttachmentComponent ¶
func (c *Character) GetCharacterAttachmentComponent() *component.CharacterAttachmentComponent
func (*Character) GetCharacterSpriteRenderInfoComponent ¶
func (c *Character) GetCharacterSpriteRenderInfoComponent() *component.CharacterSpriteRenderInfoComponent
func (*Character) GetCharacterStateComponent ¶
func (c *Character) GetCharacterStateComponent() *component.CharacterStateComponent
func (*Character) SetCharacterAttachmentComponent ¶
func (c *Character) SetCharacterAttachmentComponent(component *component.CharacterAttachmentComponent)
func (*Character) SetCharacterStateComponent ¶
func (c *Character) SetCharacterStateComponent(component *component.CharacterStateComponent)
Click to show internal directories.
Click to hide internal directories.