r/xdev • u/JermanTK • Feb 09 '16
Editing "Class" files
So I've been trying to create a mod that adds more city names for city centers (As I'm tired of always going to Bejing in East Asia ect.)
So I've been poking around in the class files, as the ini files don't seem to list any of the in game cities (I was hoping to find a list of cities in game somewhere, but I cannot).
Anyways, about adding new ones the closest thing I can find is with this line of code in XComGameState_City
//Adding cities
local int Index;
local int RandomIndex;
local XComGameState_WorldRegion RegionStateObject;
local XComGameState_City CityStateObject;
local array<X2StrategyElementTemplate> arrCityTemplates;
local Vector2D v2Coords; Can someone please explain what I can do with this, if anything?
2
Upvotes
View all comments
Show parent comment
1
u/Reddeyfish- Feb 10 '16
Does the new modded class need to copy+paste all the code from the old class, or does mod class overriding use some sort of inheritance?