Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
/gamePublic archive
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Suggestion: Integrate the game client into Vuex store state management #79

Open
Labels
discussionNeither a bug or feature, but rather a discussion on a topic.enhancementWhen functionality needs to be changed or updated.front endRelating to code and client-side script of the game.
Milestone
@erezvish

Description

@erezvish

What mechanics does this feature affect?
Application architecture (this suggested change has a system-wide effect)

How hard would it be to implement this feature on a scale of 1-10 (10 = hardest)?
7

What is the feature request?
Delaford has a game client with a couple of subs (engine, map) which is an object that is essentially responsible for handling the application state.
The application also uses a Vuex store for state management (I believe it was added later), which also allows persisting the state. It is essentially another object responsible for state and currently handles login and accounts.

Since we have two objects that share some common responsibilities, I suggest merging the client into the store, creating a single source of truth for state.

What will we gain?

  1. A single source of truth for state
  2. Take advantage of goodies that are part of Vuex (actions / mutations, getters, ect)
  3. Refine the data that is passed to components (currently several components get a reference to the game client and I think they all go through the Vue update cycle whenever something changes in the game object. While Vue should be smart enough not to re-render, I think we can spare it some work of going through the updated life cycle hook)
  4. We will probably be able to utilize the persistent state for more than accounts and logins (I'm less familiar with the plugin).

@naknode , I'll be happy to hear your thoughts on the matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionNeither a bug or feature, but rather a discussion on a topic.enhancementWhen functionality needs to be changed or updated.front endRelating to code and client-side script of the game.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp