namespace Waves
{
	//------------------------------------------------------------------------------------------------------------------------
	void Wave2() {
		//The floor
		for (int y = 0; y < 16; y++) {
			for (int x = 0; x < 16; x++) {
				kActor @t = ActorFactory.Spawn("BP_ArenaFloor", (mapStartPos.x - wallSpace) + (x * 128.0f) + 64.0f, (mapStartPos.y - wallSpace) + (y * 128.0f) + 128.0f, mapStartPos.z, 0, 0);
				t.Scale() = kVec3(0.5f, 0.5f, 0.5f);
				t.Pitch() = Math::Deg2Rad(-90.0f);
				//t.RenderModel().SetTexture(0, 0);
			}
		}
		
		//decor
		for (int y = 0; y < 11; y++) {
			AddDestructableTree(-200, -wallSpace + (y * 200));
		}
		for (int y = 0; y < 11; y++) {
			AddDestructableTree(200, -wallSpace + (y * 200));
		}
		for (int x = 0; x < 11; x++) {
			for (int y = 0; y < 11; y++) {
				for (int i = 0; i < 1; i++) {
					float rx = Math::RandRange(-100.0f, 100.0f);
					float ry = Math::RandRange(-100.0f, 100.0f);
					float ryaw = Math::Deg2Rad(Math::RandRange(0.0f, 360.0f));
					int plantType = Math::RandMax(19);
					kActor @plant = ActorFactory.Spawn("Plant" + plantType, mapStartPos.x - wallSpace + (x * 200) + rx, mapStartPos.y - wallSpace + (y * 200) + ry, mapStartPos.z, ryaw, 2);
					float rs = Math::RandRange(0.25f, 0.45f);
					plant.Scale() = kVec3(rs, rs, rs);
				}
			}
		}
	}
	//------------------------------------------------------------------------------------------------------------------------
}
