Code restructuring.

This commit is contained in:
Marvin Blum
2016-08-18 23:58:41 +02:00
parent 6ffa5aa431
commit 69886eff00
10 changed files with 197 additions and 197 deletions

View File

@@ -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++