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: 



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:



Reply to this item at:


  Meddelandet skickades via/av Gna!

Freeciv-dev mailing list

Reply via email to