Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dynamic extra fields for modding support to battleship class #121

Open
vaendryl opened this issue Nov 9, 2014 · 2 comments
Open

add dynamic extra fields for modding support to battleship class #121

vaendryl opened this issue Nov 9, 2014 · 2 comments

Comments

@vaendryl
Copy link
Owner

vaendryl commented Nov 9, 2014

under def __init__() something like

 for key in store.mod_battleship_fields:
    setattr(self,key,store.mod_battleship_fields[key])
@BlueOrange
Copy link
Contributor

Oooh, mod support:)

Please help me understand the intention here?

On Sunday, November 9, 2014, vaendryl notifications@github.com wrote:

under def init() something like

for key in store.mod_battleship_fields:
setattr(self,key,store.mod_battleship_fields[key])


Reply to this email directly or view it on GitHub
#121.

@EnderShadow
Copy link
Collaborator

I think it's for allowing modders to add attributes to other ships without modifying any core classes.

@vaendryl vaendryl added this to the game completion milestone Jun 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants