Example #1
0
func loadAllRegistries() {
	house.LoadAllFurnitureInDir(filepath.Join(datadir, "furniture"))
	house.LoadAllWallTexturesInDir(filepath.Join(datadir, "textures"))
	house.LoadAllRoomsInDir(filepath.Join(datadir, "rooms"))
	house.LoadAllDoorsInDir(filepath.Join(datadir, "doors"))
	house.LoadAllHousesInDir(filepath.Join(datadir, "houses"))
	game.LoadAllGearInDir(filepath.Join(datadir, "gear"))
	game.RegisterActions()
	status.RegisterAllConditions()
}
Example #2
0
func TestAllSpecs(t *testing.T) {
	status.RegisterAllConditions()
	r := gospec.NewRunner()
	r.AddSpec(ConditionsSpec)
	gospec.MainGoTest(r, t)
}