Skip to content

Chore/clean code#3

Open
ssirois wants to merge 1 commit intoab18556:masterfrom
ssirois:chore/clean-code
Open

Chore/clean code#3
ssirois wants to merge 1 commit intoab18556:masterfrom
ssirois:chore/clean-code

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 <patrick.p.henley@gmail.com>
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