You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
313 B
Go
12 lines
313 B
Go
package ent
|
|
|
|
type Entity struct {
|
|
*Class
|
|
serial int
|
|
slots []interface{}
|
|
}
|
|
|
|
func (e *Entity) getSlotValue(n int) interface{} { return e.slots[n] }
|
|
func (e *Entity) setSlotValue(n int, v interface{}) { e.slots[n] = v }
|
|
func (e *Entity) getSlotDecoder(n int) decoder { return e.Class.Fields[n].decoder }
|