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.
29 lines
419 B
Go
29 lines
419 B
Go
8 years ago
|
package ent
|
||
|
|
||
|
import (
|
||
|
"github.com/jordanorelli/hyperstone/bit"
|
||
|
)
|
||
|
|
||
|
type Context struct {
|
||
|
Namespace
|
||
|
entities map[int]Entity
|
||
|
}
|
||
|
|
||
|
func NewContext() *Context {
|
||
|
return &Context{entities: make(map[int]Entity)}
|
||
|
}
|
||
|
|
||
|
func (c *Context) CreateEntity(id int, r bit.Reader) {
|
||
|
}
|
||
|
|
||
|
func (c *Context) GetEntity(id int) Entity {
|
||
|
return Entity{}
|
||
|
}
|
||
|
|
||
|
func (c *Context) DeleteEntity(id int) {
|
||
|
}
|
||
|
|
||
|
func (c *Context) LeaveEntity(id int) {
|
||
|
|
||
|
}
|