Announcement

Collapse
No announcement yet.

Question: Bug fixes

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

  • #16
    Originally posted by Martin Gühmann


    That's indeed a big problem, but so far the Great Libary only reflect the unmodified versions.

    How would I access them is the syntax you implemented treated as a name as an additional database index? If yes then this would not be a big deal first unmodified values and then government specific values.

    -Martin
    We need to overload the access, so that it uses g_whateverDB->Get(whateverIndex, governmentIndex), essentially...

    you could either virtually overload the SLIC function or create a new SLIC access method...

    I.E.

    UnitDBGM(index,govIndex)

    as well as

    UnitDB(index)

    Comment


    • #17
      I prefer something like this:

      UnitDB(index, govindex)

      and

      UnitDB(unit_name, gov_name)

      and any combininations.

      The database slic access functions are already overloaded.

      If no government is specified as it is now, then the unmodified entry is used, if the government doesn't change the values meaning there is no government entry then the default value is returned. Also if the government doesn't exsists the default value is returned.

      I think to allow this functionallity the SlicDBConduit class needs to be modified.

      -Martin
      Civ2 military advisor: "No complaints, Sir!"

      Comment


      • #18
        sounds great... problem solved I guess... of course.. we still have to decide how we deal with the GL...

        the default value should probably be used though, I guess.

        Comment

        Working...
        X