X2CommunityCore / X2CommunityHighlander

MIT License
7 stars 3 forks source link

Allow mods to override the GameInfoClass #267

Open robojumper opened 7 years ago

robojumper commented 7 years ago

XComGameInfo.SetGameType is used to find out the game info class (XComTacticalGame, XComHeadquartersGame, ...) depending on the map type. It will always fall back to XComTacticalGame if the map isn't recognized.

This function should be opened up to mods to allow custom game modes or overrides.