what is ini syntax?

edited April 2013 in Help request
I've got embedded dynamic project and tutorials to compile and work together on current XCode.

I am now going through INI files in tutorials and trying to figure out the rules of the file.

I am a bit confused on the use of @ character. I see the connection between multiple sections, but I am not sure how type is detected. Is it based on the suffix name?

Here is the example I am looking at:


[VerticalWallGraphic@WallGraphic]
Repeat = (1, 16, 1); <= This tiles the graphic 17 times on its Y axis

[WallTemplate]
Body = WallBody; <= Same body for all the wall objects

[VerticalWall@WallTemplate]
; Here we defined all properties for a vertical wall
Graphic = VerticalWallGraphic; <= We use the vertical wall graphic (that uses the tiling we need)
Scale = @VerticalWallGraphic.Repeat; <= We scale it to match our vertical screen size

WallTemplate does not seem to do much.

[VerticalWall@WallTemplate] seems to define a new name VerticalWall that is connected to WallTemplate. Graphic seems to be self-explanatory.

Scale = @VerticalWallGraphic.Repeat;
seems to confuse me. I assume that in this as it is a reference to Repeat property of VerticalWallGraphic. Initially I though it was an action or a rule.

Is there an easy way to derive INI file capabilities to source code?


Thanks

Comments

  • edited April 2013
    The INI syntax is briefly explained at the top of both template files (CreationTemplate.ini and SettingsTemplate.ini).

    In addition to those, there's a more extensive description on the wiki.

    As for the @ character, as you guessed, it's the inheritance marker. It's described at length in the documents aforementioned.
    Is there an easy way to derive INI file capabilities to source code?
    I'm not sure what you mean, sorry.
  • edited April 2013
    Thanks. These 3 links together gave me enough information to start.
Sign In or Register to comment.