1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Any gotchas in adding a new class in the DLL?

Discussion in 'Civ5 - SDK / LUA' started by Drawmeus, Dec 18, 2012.

  1. Drawmeus

    Drawmeus Emperor

    Joined:
    Jul 25, 2007
    Messages:
    1,213
    I'm defining a new class in the DLL. Nothing too tricky about the functionality - some data, basic get/set functions, and a few slightly more involved functions, with a few protected variables. I've got my .h and .cpp files set up and I'm filling them out.

    Are there any gotchas that I should be aware of going in? Places they need to be added? Things that absolutely need to be included (or #included)?

    Also, is there anything tricky about saving data related to this class out when you save your game?
     
  2. Drawmeus

    Drawmeus Emperor

    Joined:
    Jul 25, 2007
    Messages:
    1,213
    ...the answer is yes, there are gotchas. Picking my way through this minefield.
     

Share This Page