Changeset 399
- Timestamp:
- Jan 6, 2025, 10:48:55 AM (3 days ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Game.pas
r398 r399 695 695 WriteInteger(RootNode, 'CurrentPlayer', CurrentPlayer.Id); 696 696 697 Units.RecalculateItemsId; 698 Players.RecalculateItemsId; 699 697 700 NewNode := OwnerDocument.CreateElement('GameSystem'); 698 701 AppendChild(NewNode); -
trunk/Packages/Common/ItemList.pas
r391 r399 133 133 FBaseItemList: TBaseItemList; 134 134 procedure RecalculateNewId(Reset: Boolean); 135 procedure RecalculateItemsId;136 135 function BaseGetItem(Index: SizeInt): TItem; 137 136 procedure BaseSetItem(Index: SizeInt; AValue: TItem); … … 145 144 public 146 145 NewId: Integer; 146 procedure RecalculateItemsId; 147 147 function CreateItem(Name: string = ''): T; virtual; 148 148 function IncrementName(Name: string): string; … … 265 265 NewNode2: TDOMNode; 266 266 begin 267 RecalculateItemsId;268 267 for I := 0 to Count - 1 do 269 268 with TItem(Items[I]) do begin -
trunk/Player.pas
r398 r399 558 558 Result := inherited; 559 559 Result.Game := Game; 560 Result.Mode := pmComputer; 561 Result.Agressivity := caMedium; 560 562 Result.Color := GetUnusedColor; 561 563 end; -
trunk/Units.pas
r398 r399 114 114 NewNode2: TDOMNode; 115 115 begin 116 RecalculateItemsId;117 116 for I := 0 to Count - 1 do 118 117 with Items[I] do begin
Note:
See TracChangeset
for help on using the changeset viewer.