adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] Re: charedit


From: Andrew Phillips
Subject: Re: [Adonthell-devel] Re: charedit
Date: Thu, 29 Jun 2006 14:46:58 -0500

I think I will have to think about it before I make any decisions. 2
seems to make the most sense right now, but I would rather consider
things more fully. Is it worth thinking about what datatypes we'll
need to describe a given character or creature and then abstract from
there?

On 6/29/06, Kai Sterker <address@hidden> wrote:
On 6/29/06, Andrew Phillips <address@hidden> wrote:

> Yes, please. A format definition - or even a nesting scheme - would be
> very useful.

Okay. I could imagine three variations, although I tend towards number 2:

1. <data>
      <var id="" type="..."></var>
      <var id="" type="L">
         <var id="" type="..."></var>
      </var>
    </data>

   We only have elements of type <var>, which contain CDATA or, if
type="L" nested <var> elements.

2. <data>
      <var id="" type="..."></var>
      <list id="">
         <var id="" type="..."></var>
      </list>
    </data>

   We have <var> elements for simple types and <list> elements for nesting.

3.  <data>
      <uint_8 id=""></uint_8>
      <list id="">
         <string id=""></string>
      </list>
    </data>

   There is a different element for each type. Again, <list> is used
for nesting.

We will need to have the following types, also present in the binary
file format:

Boolean, unsigned integers with 1, 2 and 4 bytes, signed integers with
1, 2 and 4 bytes, floats and doubles, 1 byte chars and strings, binary
data and the list.

Since I have not too much experience with XML, I cannot really decide
which of the three suggestions might be suited best. What do you
think?

Kai


_______________________________________________
Adonthell-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/adonthell-devel





reply via email to

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