com.amanotes.orchestra
v0.2.41
Published
Orchestra SDK - Amanotes Core Library
Readme
Orchestra SDK
Package: com.amanotes.orchestra v0.2.41
Unity: 2022.3+
Namespace: Amanotes.Orchestra
Core SDK for Amanotes Unity games. Bundles asset management, audio, command system, user profile, and UI utilities. Depends on KView, EventBus, AssetFolder, Audio2, and AmaExtensions.
Quick Start
// Asset management
OrchestraApi.Asset.AddProvider(myProvider);
var clip = OrchestraApi.Asset.GetAsset<AudioClip>("bgm_main");
// Commands
var handler = new CommandHandler();
handler.Register<BuyItemCommand>(cmd => { /* handle */ });
CommandManager.Execute(new BuyItemCommand { itemId = "sword" });
// User profile
UserProfile.SetProp("coins", 100);
int coins = UserProfile.GetProp<int>("coins");
// Server time
DateTime serverTime = OrchestraApi.GetServerTime();Included Systems
OrchestraApi— central API: asset management, server time, frame callbacksAssetManager/IAssetProvider— pluggable asset resolution (scene, scriptable, custom)CommandHandler/CommandManager— command pattern with typed handlers and resultsUserProfile— persistent user data with meta, props, and command integrationAudioMaster— legacy audio system (channel-based)FrameUpdater— lightweight per-frame callback managerFileEntry— serializable file reference
Installing in your project
Add to your Packages/manifest.json:
{
"dependencies": {
"com.amanotes.orchestra": "0.2.41"
},
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.amanotes"
]
},
{
"name": "OpenUPM",
"url": "https://package.openupm.com",
"scopes": [
"com.cysharp"
]
}
]
}All transitive dependencies (kview, eventbus, assetfolder, audio2, extensions, unitask) will be resolved automatically.
Then open Unity — the Package Manager will download everything.
