com.draasgames.core
v0.1.2
Published
A package of useful scripts and systems for rapid project development
Downloads
134
Readme
Project Overview
This is a set of scripts that I commonly use in my projects.
Table of Contents
Dependencies
- Zenject
- OdinInspector
- UniTask
- DOTween
- NSubstitute - for unit testing
Installation
- Install required dependencies
- Import source code or (preferred) use package manager
- For installing package from git url paste https://github.com/Draass/DraasGames.Core.git?path=/Assets/Packages/DraasGames.Core
- Enjoy modules that are implemented and do not use modules that are not :)
Modules that are implemented
- ViewRouter is usable except of Preloading functionality and addressables support, which will be added later
- Effects
- SlideCarousel (will be moved to UI Extensions later)
- StateMachineAsync
ViewRouter
ViewRouter is used for handling view switching.
How to use
- Create a ViewContainer script. Choose implementation of IViewContainer interface that suits your needs.
- Create you view scripts. They must implement IView interface and inherit from MonoBehaviour (or just inherit from View class).
- Use predefined ViewsInstaller to inject views infrastructure
- Inject IVIewRouter where you need it
- Done!
API
IViewRouter.Show<T>(IView view);
StateMachineAsync
StateMachineAsync is a state machine implementation that uses UniTask to handle async operations.
How to use
API
Effects
just a bunch of simple (mostly ui) effect.
API
Effect.Play(bool reverse = false);
Effect.Pause();
Effect.Stop();
Effect.Reset();
TODO
- Add support for addressables in ViewRouter
- Add support for preloading views
- Import and refactor ListView functionality. Now it is a mess of legacy shit mixed with refactored stuff
- Add more effects to Effects module
- Write tests for other modules
- Create a couple of example mini-apps with most of the modules used
License
This project is licensed under the MIT License. See the LICENSE.md file for details.