Announcement

Collapse
No announcement yet.

User defined structures

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • User defined structures

    It is possible with SLIC to make a user-defined array. But does anybody know if you can define your own structure?

    If so, how does slic handle the arguements?

    If you could fuse the C and SLIC languages what I would like to do is something like:

    Struct_t MyStruct {
    int_t Value1;
    int_t Value2;
    unit_t tmpUnit;
    }

    But of course there is no "_t" equivalent to the C "struct" keyword.

    Does anyone know if SLIC allows the user to define his own structure?

  • #2
    Nope, not possible. You'll just have to be clever in playing with your array indices
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      Originally posted by Locutus
      Nope, not possible. You'll just have to be clever in playing with your array indices
      You mean " a dumba-s-s workaround for a dumba-s-s design flaw?"

      Comment


      • #4
        Indeed. This is good: you're starting to develop an insight in the underlying design philosophies of SLIC programming
        Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

        Comment

        Working...
        X