Loading...
Searching...
No Matches
CityBuilderCore.IWalkerManager Interface Reference

Detailed Description

keeps track of all the active walkers in the game

Inheritance diagram for CityBuilderCore.IWalkerManager:
CityBuilderCore.DefaultBuildingManager CityBuilderCore.Tests.DebugWalkerManager

Public Member Functions

Walker GetWalker (Guid id)
 retrieves a walker by its id, can be used to get walker references when loading
 
IEnumerable< WalkerGetWalkers ()
 all the walkers currently active
 
void RegisterWalker (Walker walker)
 registers a walker into the managers responsibility, called by walker on initialization
 
void DeregisterWalker (Walker walker)
 deregisters a walker from the managers responsibility, called by walker on finish
 

Events

Action< WalkerWalkerRegistered
 fired when a new walker is registered(happens during initializion)
 
Action< WalkerWalkerDeregistered
 fired when a walker gets deregistered(happens during finish)
 

Member Function Documentation

◆ DeregisterWalker()

void CityBuilderCore.IWalkerManager.DeregisterWalker ( Walker walker)

deregisters a walker from the managers responsibility, called by walker on finish

Parameters
walker

Implemented in CityBuilderCore.DefaultBuildingManager, and CityBuilderCore.Tests.DebugWalkerManager.

◆ GetWalker()

Walker CityBuilderCore.IWalkerManager.GetWalker ( Guid id)

retrieves a walker by its id, can be used to get walker references when loading

Parameters
idunique identifier of the walker
Returns
the walker if any walker has the id

Implemented in CityBuilderCore.DefaultBuildingManager, and CityBuilderCore.Tests.DebugWalkerManager.

◆ GetWalkers()

IEnumerable< Walker > CityBuilderCore.IWalkerManager.GetWalkers ( )

all the walkers currently active

Returns
all active walkers in the game

Implemented in CityBuilderCore.DefaultBuildingManager, and CityBuilderCore.Tests.DebugWalkerManager.

◆ RegisterWalker()

void CityBuilderCore.IWalkerManager.RegisterWalker ( Walker walker)

registers a walker into the managers responsibility, called by walker on initialization

Parameters
walker

Implemented in CityBuilderCore.DefaultBuildingManager, and CityBuilderCore.Tests.DebugWalkerManager.