(uuid uuid.UUID, typ int32, metadata metadata.Metadata, attributes []Attribute)
| 20 | } |
| 21 | |
| 22 | func New(uuid uuid.UUID, typ int32, metadata metadata.Metadata, attributes []Attribute) *Entity { |
| 23 | return &Entity{ |
| 24 | uuid: uuid, |
| 25 | typ: typ, |
| 26 | metadata: metadata, |
| 27 | attributes: attributes, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func NewLiving(e *Entity) LivingEntity { |
| 32 | return LivingEntity{Entity: *e} |