// Start is called before the first frame update void Start() { //setup map configurations tileMapGenerators = new List <TileMapGenerator>(); setupMapConfigurations(new List <string>() { "simpleTest2" }); tiles = new Dictionary <int, Tile>() { { 1, dirtTile }, { 2, grassTile } }; sections = new List <Section>(); sectionBuilder = SectionBuilderFactory.getSectionBuilder("STANDARD"); tileMapAlteration = TileMapAlterationFactory.getSectionBuilder("TOP_LAYER"); planetTileMappings = SaveLoadManager.loadTileMappings(); //eventually array will be generated from a starting section and surrounding positions generateSectionsInView(0); SaveLoadManager.saveTileMappings(planetTileMappings); }
public async Task BuilderFactory_ShouldCreateBuilder() { //ARRANGE var characters = await fixture.Context.Characters.ToListAsync(); var characterDtos = new List <BaseCharacterDto> { mapper.Map <BaseCharacterDto>(characters[1]) }; var factory = new SectionBuilderFactory(); //ACT var builder = factory.GetSectionBuilder(characters[0], characterDtos); //ASSERT Assert.NotNull(builder); Assert.IsAssignableFrom <ISectionBuilder>(builder); }