MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / NewEntityId

Function NewEntityId

server/entity/entity.go:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16var entityId atomic.Int32
17
18func NewEntityId() int32 {
19 return entityId.Add(1)
20}
21
22func New(uuid uuid.UUID, typ int32, metadata metadata.Metadata, attributes []Attribute) *Entity {
23 return &Entity{

Callers 1

NewMethod · 0.92

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected