URL:
<http://gna.org/patch/?1555>
Summary: Scripting: Allow saving tables to script state
Project: Freeciv
Submitted by: englabenny
Submitted on: måndag 2010-03-22 den 20:05
Category: general
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
This is an extra feature/wishlist for scenario state saving to allow (simple)
table values to be saved to script state.
This patch depends (textually) on patch #1554 (government dump fix)
Subject: [PATCH] Allow saving (some) table values to script state
Allow saving values of the lua table datatype to scenario/savegame
script state.
We allow saving tables containing only keys and values of scalar type
(that we can save normally), so no tables containing functions
(like modules) or tables containing tables are saved.
This means that we can save mappings or lists using tables to the
savegame script state. This may for exmaple be used as a record or a
score table.
The API module "E" that contains only a mapping from string -> integer
is explicitly excluded. Otherwise it would be saved as well.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: måndag 2010-03-22 den 20:05 Name:
0001-Allow-saving-some-table-values-to-script-state.patch Size: 4 kB By:
englabenny
<http://gna.org/patch/download.php?file_id=8619>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1555>
_______________________________________________
Meddelandet skickades via/av Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev