public void ParseSourceFGD() { var hl2 = @"D:\Github\sledge\_Resources\FGD\portal2.fgd"; GameDataProvider.Register(new FgdProvider()); var gd = GameDataProvider.GetGameDataFromFile(hl2); Assert.IsTrue(gd.Classes.Count > 0); }
public void ParseTF2FGD() { var tf2 = @"D:\Github\sledge\_Resources\FGD\tf2.fgd"; GameDataProvider.Register(new FgdProvider()); var gd = GameDataProvider.GetGameDataFromFile(tf2); Assert.IsTrue(gd.MaterialExclusions.Count > 0); Assert.IsTrue(gd.AutoVisgroups.Count > 0); }
public void ParseGoldsourceFgd() { var gs = @"D:\Github\sledge\_Resources\FGD\Half-Life.fgd"; GameDataProvider.Register(new FgdProvider()); var gd = GameDataProvider.GetGameDataFromFile(gs); var types = gd.Classes.SelectMany(x => x.Properties).Select(x => x.VariableType).Distinct(); foreach (var variableType in types) { Console.WriteLine(variableType); } }