Skip to content

This is a tool for setting up the SMCP architecture. Unity専用のアーキテクチャパターンSMCPを導入するのに便利なプラグイン

License

Notifications You must be signed in to change notification settings

IShix-g/SMCP-Configurator

Repository files navigation

README - 日本語版

SMCP Configurator

This plugin is for the initial configuration of the Unity-specific architecture pattern SMCP.

What is SMCP?

For more information, please click here.

Install via git URL

Please add the URL to "Window > Package Manager > Add package from git URL...".

URL: https://github.com/IShix-g/SMCP-Configurator.git?path=Packages/SMCPConfigurator

Package Manager

Usage

Open Window > SMCP Configurator

Follow the instructions in the dialog box.

SMCP architecture

SMCP is an architecture for separating game logic and data models from MonoBehaviour.

Logic/Model Layer

This layer is like a domain or application in onion architecture, such as master data, data model, level-up logic and damage calculation.

Prohibited

  • ScriptableObjects can be placed, but scripts that inherit from MonoBehaviour cannot be placed.
  • Accessing or referencing Unity APIs that can only be obtained during playback (runtime), such as transforms, as arguments for method calls passed from another layer is prohibited.

References to the Other Layer

  • Only the Other layer can be accessed via interface.

View Layer

This layer represents and manipulates visible objects such as character manipulation, movement, animation, and UI. In the onion architecture, this layer is like a presentation or application layer.

Reference to another layer

  • The Logic/Model layer can be accessed.
  • The Other layer can also be accessed via interface.

Other Layer

The only thing that is defined in this layer is the placement of the save system (a function for permanently storing game data). It may also be a good place to place wrapper classes for external plug-ins that may be replaced later, and it is up to the project how it will be used.

Reference to another layer

  • All Logic/Model and View layers can be accessed.

SMCP sample game

This project is a sample project using SMCP.

https://github.com/IShix-g/SMCPxPuzzleGame

About

This is a tool for setting up the SMCP architecture. Unity専用のアーキテクチャパターンSMCPを導入するのに便利なプラグイン

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages