Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: commandline syntax and semantics (was: Server/ruleset
Home

[Freeciv-Dev] Re: commandline syntax and semantics (was: Server/ruleset

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: [Freeciv-Dev] Re: commandline syntax and semantics (was: Server/ruleset unification)
From: Reinier Post <rp@xxxxxxxxxx>
Date: Tue, 2 Oct 2001 00:30:10 +0200

On Mon, Oct 01, 2001 at 10:12:02PM +0200, Reinier Post wrote:

> BTW the example is really about unit_types rather than units,
> so my syntax would actually be:
> 
>   create units.archers  # automatically gets name "Archers" assigned
>   set units.archers.name = "Bowmen"
>   set units.bowmen.hitpoints = ...

Ahem, please read

  create unit_types.archers
  set unit_types.archers.name = "Bowmen"
  set unit_types.bowmen.hitpoints = ...

The actual Freeciv datastructures are followed in the naming, the parsing
code can be derived from the Freeciv source.

-- 
Reinier


[Prev in Thread] Current Thread [Next in Thread]