This commit is contained in:
CortexCore
2025-04-14 15:39:24 +08:00
parent 5fceb6f885
commit 3f9d9f19ce
50 changed files with 683 additions and 41 deletions

23
Src/PDA/IPDAService.cs Normal file
View File

@@ -0,0 +1,23 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit;
using BITKit.StateMachine;
using Cysharp.Threading.Tasks;
// ReSharper disable InconsistentNaming
namespace Net.Project.B.PDA
{
public interface IPDAService
{
UniTask Navigate(string url);
UniTask Home();
UniTask Back();
void Badge(string packageName);
public event Action<string,string> OnNavigated;
public event Func<string, string,UniTask> OnNavigatedAsync;
event Action<string> OnNotification;
void Notify(string message);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fa5cfb924bf3fb14e866ab573843cdb8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,18 @@
{
"name": "Net.Project.B.PDA",
"rootNamespace": "",
"references": [
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
"GUID:d8b63aba1907145bea998dd612889d6b",
"GUID:f51ebe6a0ceec4240a699833d6309b23"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": true
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 85dbd64adec129a49b024066ca126ecc
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

48
Src/PDA/PDAApps.cs Normal file
View File

@@ -0,0 +1,48 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.StateMachine;
using Cysharp.Threading.Tasks;
namespace Net.Project.B.PDA
{
public interface IApp
{
public string PackageName { get; }
public string AppName { get; }
}
public interface IAppClass:IStateAsync
{
public Type AppType { get; }
public IReadOnlyList<string> Routes { get; }
public UniTask<object> GetPage(string route);
}
public interface IAppClass<T> : IAppClass
{
}
}
namespace Net.Project.B.PDA.App
{
[Serializable]
public struct Phone:IApp
{
public string PackageName => "com.bndroid.phone";
public string AppName => "拨号";
}
[Serializable]
public struct Map:IApp
{
public string PackageName => "com.bndroid.map";
public string AppName => "地图";
}
[Serializable]
public struct Quest:IApp
{
public string PackageName => "com.bndroid.quest";
public string AppName => "人物";
}
}

11
Src/PDA/PDAApps.cs.meta Normal file
View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 39d2adb73a5e7254d9d56daf3ca3e9a2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: