Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Best approach

Best approach

Scheduled Pinned Locked Moved C#
game-devhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pokabot
    wrote on last edited by
    #1

    I am recreating a collectable card game and need to make the game easily updatable. Each card has its own effects which i will have to write specific functions for and the problem arises when new cards need to be added and the application will obviously not have the functionality for them. Could i somehow write a dll for each card including the new functions or add the new functions to an existing dll, but then how would the app know about the new functions. As you can tell i have not got a clue :)

    P 1 Reply Last reply
    0
    • P pokabot

      I am recreating a collectable card game and need to make the game easily updatable. Each card has its own effects which i will have to write specific functions for and the problem arises when new cards need to be added and the application will obviously not have the functionality for them. Could i somehow write a dll for each card including the new functions or add the new functions to an existing dll, but then how would the app know about the new functions. As you can tell i have not got a clue :)

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      In a situation like this where it's impossible for the calling application to know what changes you are going to implement in the callee, you need to provide a standardised method for managing it. You ensure that the card actually handles all of the effects and knows how to call them in response to some stimulus from the calling application. Take a look for plug in articles on this site to get an idea as to how others have handled this in the past.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      P 1 Reply Last reply
      0
      • P Pete OHanlon

        In a situation like this where it's impossible for the calling application to know what changes you are going to implement in the callee, you need to provide a standardised method for managing it. You ensure that the card actually handles all of the effects and knows how to call them in response to some stimulus from the calling application. Take a look for plug in articles on this site to get an idea as to how others have handled this in the past.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        P Offline
        P Offline
        pokabot
        wrote on last edited by
        #3

        thankyou

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups