13 Star 127 Fork 42

凉鞋 / QFramework

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README_EN.md

LOGO

Build Status

QFramework Intro

中文|English

QFramework is a framework. she support solid pricinple、domain design driven、event-driven、data-driven、layered、mvc、cqrs、modulization、extendable、scalable architecture. Simple but powerful! she only has 800 lines of code.can save to a note-taking app.

Architecture diagram

For Example(😂)

Schematic diagram of various situations

Architecture Rule

QFramework System Design Architecture has 4 layers:

  • Presentation Layer:ViewController Layer. Using IController interface,recive input from user and state changed event from model. In unity MonoBehaviour is on presentation layer
    • Can get System
    • Can get Model
    • Can send Command
    • Can listen Event
  • System Layer:Using ISystem interface. share IController's part of responsibility. Sharing logic shared across multiple presentation layers,suchas time system、shop system、archivement system.
    • Can get System
    • Can get Model
    • Can listen Event
    • Can send Event
  • Model Layer:Using IModel interface.Responsible for data definition, data addition, deletion, query and modification methods.
    • Can get Utility
    • Can send Event
  • Utility Layer:Using IUtility interface.Responsible for providing infrastructure, such as storage method, serialization method, network connection method, Bluetooth method, SDK, framework inheritance, etc. Nothing can be done. You can integrate third-party libraries or encapsulate APIs
  • In addition to the four layers, there is a core concept - command
    • Can get System
    • Can get Model
    • Can send Event
    • Can send Command
  • Layer Rule:
    • IController change ISystem、IModel's state by Command
    • Notify icontroller after the change of ISystem and IModel must use event or bindableproperty
    • IController can get ISystem、IModel for data query
    • ICommand cannot have state
    • The upper layer can directly obtain the lower layer, and the lower layer cannot obtain the upper object
    • Events for lower layer to upper layer communication
    • The communication between the upper layer and the lower layer is called by method (only for query and command for state change). The interaction logic of IController is special, and command can only be used

(照抄自:学生课堂笔记1

Environment

  • Unity 2018.4.x ~ 2021.x

Install

  • QFramework.cs

  • QFramework.ToolKits

    • See bellow table
  • QFramework.ToolkitsPro

Resources

Version
QFramework.cs Implementation of qframework ontology architecture
QFramework.ToolKits QFramework with UIKit/ActionKit/ResKit/PackageKit/AudioKit Github Release
QFramework.ToolKitsPro More Powerful Tools version based on QFramework.ToolKits AssetStore
Example/Demo
Example 示例 Include CounterApp、《点点点》etc QF example github|gitee
ShootingEditor2D include a level designer' shooting game github|gitee
Community
github issue github 社区 地址
gitee issue gitee 社区(国内访问快) 地址
Official Toolkits
SingletonKit github|gitee
ExtensionKit github|gitee
IOCKit github|gitee
TableKit github|gitee
PoolKit github|gitee
LogKit github|gitee
ActionKit github|gitee
ResKit github|gitee
UIKit github|gitee
AudioKit github|gitee
PackageKit github|gitee

Star Trends

Stargazers over time

Core Members

Other Awesome Framework

Code Style:

QCSharpStyleGuide

Donate:

  • 如果觉得不错可以在 Asset Store 给个 5 星哦~ give 5 star
  • 或者给此仓库一个小小的 Star~ star this repository
  • 以上这些都会转化成我们的动力,提供更好的技术服务!

Repository Comments ( 0 )

Sign in to post a comment

About

Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/liangxiegame/QFramework.git
git@gitee.com:liangxiegame/QFramework.git
liangxiegame
QFramework
QFramework
master

Search

101014 b92fc32e 1850385 101014 af024cb7 1850385