Here is the basic casting error:
This is the line causing the issue. MarkerGroupID variable is the integer conversion for the enum MarkerGroups value being assigned.Assets\Game\Mods\Minimap\Scripts\BuildingManager.cs(577,43): error CS0266: Cannot implicitly convert type 'Minimap.MarkerGroups [D:\Games\daggerfall-unity-master\Assets\Game\Mods\Minimap\Scripts\Minimap.cs(24)]' to 'Minimap.MarkerGroups [D:\Games\daggerfall-unity-master\Library\ScriptAssemblies\Assembly-CSharp.dll]'. An explicit conversion exists (are you missing a cast?)
Code: Select all
MeshController meshScript = combinedMesh.AddComponent<MeshController>();
meshScript.buildingType = (MarkerGroups)markerGroupID;
Code: Select all
public MarkerGroups buildingType = new MarkerGroups();
Code: Select all
public enum MarkerGroups
{
Shops,
Blacksmiths,
Houses,
Taverns,
Utilities,
Government,
Friendlies,
Enemies,
Resident,
Doors,
None
}