Changeset 342 for trunk/GameSystem.pas
- Timestamp:
- Dec 22, 2024, 10:52:26 AM (11 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameSystem.pas
r339 r342 4 4 5 5 uses 6 Classes, SysUtils, Generics.Collections, &Unit, DOM, XMLRead, XMLWrite, XML,6 Classes, SysUtils, Generics.Collections, Units, DOM, XMLRead, XMLWrite, XML, 7 7 XMLConf, FileUtil, LazFileUtils, MapType, Nation, Building, ItemList, UnitKind; 8 8 … … 27 27 function GetName: string; 28 28 procedure Assign(Source: TGameSystem); 29 function Compare(GameSystem: TGameSystem): Boolean; 29 30 procedure LoadFromNode(Node: TDOMNode); 30 31 procedure SaveToNode(Node: TDOMNode); … … 133 134 BuildingKinds.Assign(Source.BuildingKinds); 134 135 Nations.Assign(Source.Nations); 136 end; 137 138 function TGameSystem.Compare(GameSystem: TGameSystem): Boolean; 139 begin 140 Result := (FileName = GameSystem.FileName) and 141 (UnitsMoveImmediately = GameSystem.UnitsMoveImmediately) and 142 (MaxPlayerCount = GameSystem.MaxPlayerCount) and 143 (UnitsSplitMerge = GameSystem.UnitsSplitMerge) and 144 (EmptyCellsNeutral = GameSystem.EmptyCellsNeutral) and 145 (PreferedMapType = GameSystem.PreferedMapType); // and 146 //(UnitKinds.Assign(GameSystem.UnitKinds) and 147 //(BuildingKinds.Assign(GameSystem.BuildingKinds) and 148 //(Nations.Assign(GameSystem.Nations); 135 149 end; 136 150
Note:
See TracChangeset
for help on using the changeset viewer.