// Create and island entity for each island prefab at its given world coordinates public static void PopulateSnapshotWithIslandTerrainEntities(ref Dictionary <EntityId, Entity> snapshotEntities, ref int nextAvailableId) { foreach (var item in SimulationSettings.IslandsEntityPlacements) { snapshotEntities.Add(new EntityId(nextAvailableId++), EntityTemplateFactory.GenerateIslandEntityTemplate(item.Value, item.Key)); } }