mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-18 06:40:28 +00:00
Code restructuring.
This commit is contained in:
8
actor.go
8
actor.go
@@ -1,5 +1,9 @@
|
||||
package goga
|
||||
|
||||
var (
|
||||
actorIdGen = ActorId(0)
|
||||
)
|
||||
|
||||
// An actor ID is a unique integer,
|
||||
// which can be used to reference an actor.
|
||||
type ActorId uint64
|
||||
@@ -10,10 +14,6 @@ type Actor struct {
|
||||
id ActorId
|
||||
}
|
||||
|
||||
var (
|
||||
actorIdGen = ActorId(0)
|
||||
)
|
||||
|
||||
// Creates a new basic actor with unique ID.
|
||||
func NewActor() *Actor {
|
||||
actorIdGen++
|
||||
|
||||
Reference in New Issue
Block a user