Esempio n. 1
0
    public void MapDisplayData_ReturnsCorrectMeshDependingOnStatus()
    {
        MapDisplayData dispData = new MapDisplayData(data);

        dispData.UpdateLOD(2); dispData.SetStatus(MapDisplayStatus.VISIBLE);
        Assert.True(dispData.GetMesh() == dispData.Mesh, "Mesh was not updated!");
        dispData.SetStatus(MapDisplayStatus.HIDDEN);
        Assert.True(dispData.GetMesh() == dispData.lowLodMesh, "Mesh was not updated!");
    }
Esempio n. 2
0
    public void MapDisplayData_UpdateLODUpdatesMesh()
    {
        MapDisplayData dispData = new MapDisplayData(data);

        dispData.SetStatus(MapDisplayStatus.VISIBLE); dispData.UpdateLOD(2);
        Assert.True(dispData.GetMesh() == dispData.Mesh, "Mesh was not updated!");
    }
Esempio n. 3
0
    public void MapDisplayData_SetMapDataInitializesMesh()
    {
        MapDisplayData dispData = new MapDisplayData();

        Assert.True(dispData.GetMesh() == null, "There was a mesh before there was any data!");
        dispData.SetStatus(MapDisplayStatus.VISIBLE); dispData.SetMapData(data);
        Assert.True(dispData.GetMesh() == dispData.lowLodMesh, "Mesh was not initialized!");
    }
Esempio n. 4
0
 public void SetStatus(MapDisplayStatus newStatus)
 {
     displayData.SetStatus(newStatus);
 }