From 6b2425fa19d08f041f8d1f36bc94818681c18b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Thu, 18 Mar 2021 00:00:23 +0100 Subject: [PATCH] Updated CONTRIBUTING.md to reflect new structure --- .github/CONTRIBUTING.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index ff2fd18..cec4bcc 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,8 +1,6 @@ -The following is a description of the our approach to the project. +Cookie Monster is written to modify Cookie Clicker as little as possible. This means the data is copied to simulate instead of actually modifying the current values and reverting later. The benefit is that CM should never mess up any data. The downside is that there is an extra overhead to copy and store the copied data. -Cookie Monster is written to modify Cookie Clicker as little as possible. This means the data is copied to simulate instead of actually modifying the current values and reverting later. The benefit is that CM should never mess up any data. The downside is that there is an extra overhead to copy and store the copied data. - -Here is a description of what should be stored in each of the source JS. Make edits to the source file first and then use the combine file to compile the final file: +The following is a short description of the various `src` directories and their contents: JS | Description -- | - @@ -10,13 +8,11 @@ Cache | Functions related to creating and storing data cache Config | Functions related to manipulating CM configuration Data | Hard coded values Disp | Functions related to displaying CM's UI -Footer | The footer of CM's JS (not modified often or ever) -Header | The header of CM's JS (not modified often or ever) +InitSaveLoad | Functions related to registering the CM object with the Game's Modding API Main | Functions related to the main loop and initializing CM Sim | Functions related to simulate something These are some additional guidelines: - Try to use DOM as much as possible instead of using string manipulation to modify HTML. -- Please be descriptive of your commits. If the commit is related to an issue or PR, please add the issue/PR number to the commit message. -- Try to follow the formatting and annotation as specified by JSCode +- Please be descriptive of your commits. If the commit is related to an issue or PR, please add the issue/PR number to the commit message. - PR's should target the `dev` branch