20 lines
339 B
Go
20 lines
339 B
Go
|
package data
|
||
|
|
||
|
import "code.haedhutner.dev/mvv/LastMUD/internal/ecs"
|
||
|
|
||
|
type AccountComponent struct {
|
||
|
Account ecs.Entity
|
||
|
}
|
||
|
|
||
|
func (ac AccountComponent) Type() ecs.ComponentType {
|
||
|
return TypeAccount
|
||
|
}
|
||
|
|
||
|
type PasswordComponent struct {
|
||
|
EncryptedPassword string
|
||
|
}
|
||
|
|
||
|
func (pc PasswordComponent) Type() ecs.ComponentType {
|
||
|
return TypePassword
|
||
|
}
|