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

Chore/clean code #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ssirois
Copy link

@ssirois ssirois commented Nov 18, 2018

No description provided.

The game is not written in typescript so all our classes and heritage
and what not meens _nothing_ to The Game.

Checks are made on object sent to Game's functions and methods that
doesn't identify our _subclasses_ as valid instances for said methods.

Game's documentation shows us that _Modifying object prototypes_ is a
valid technique to address our needs ( see
https://docs.screeps.com/contributed/modifying-prototypes.html ).

We have decided to group those prototype changes inside something called
a _MutationFacility_.

Co-authored-by: Patrick P. Henley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant