1
This commit is contained in:
17
Src/Entities/Com.Project.B.Entities.asmdef
Normal file
17
Src/Entities/Com.Project.B.Entities.asmdef
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "Com.Project.B.Entities",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
7
Src/Entities/Com.Project.B.Entities.asmdef.meta
Normal file
7
Src/Entities/Com.Project.B.Entities.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c469c0b0902774247810f42d61a18bd7
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
Src/Entities/IEntitiesFactory.cs
Normal file
18
Src/Entities/IEntitiesFactory.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BITKit.Entities;
|
||||
using Cysharp.Threading.Tasks;
|
||||
|
||||
namespace Project.B.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 实体工厂
|
||||
/// </summary>
|
||||
public interface IEntitiesFactory:IDisposable
|
||||
{
|
||||
IReadOnlyDictionary<int,IEntity> Entities { get; }
|
||||
UniTask<IEntity> CreateAsync(string addressablePath);
|
||||
public event Func<string, IEntity,UniTask> OnEntityCreate;
|
||||
public event Func<string, IEntity,UniTask> OnEntityCreated;
|
||||
}
|
||||
}
|
11
Src/Entities/IEntitiesFactory.cs.meta
Normal file
11
Src/Entities/IEntitiesFactory.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a04dc5a4e09c045449fae446e3ce4f4c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
11
Src/Entities/IGameEntitiesService.cs
Normal file
11
Src/Entities/IGameEntitiesService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Project.B.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 游戏实体服务,通常是场景中的角色,怪物,道具等
|
||||
/// </summary>
|
||||
public interface IInGameEntitiesService
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
11
Src/Entities/IGameEntitiesService.cs.meta
Normal file
11
Src/Entities/IGameEntitiesService.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37fcf1ccb8b19e049a5e20b3ceaf53de
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
7
Src/Entities/INpcFactory.cs
Normal file
7
Src/Entities/INpcFactory.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Project.B.Entities
|
||||
{
|
||||
public interface INpcFactory:IEntitiesFactory
|
||||
{
|
||||
|
||||
}
|
||||
}
|
11
Src/Entities/INpcFactory.cs.meta
Normal file
11
Src/Entities/INpcFactory.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 15be9f6a652c2fa4da9f3a5432cea177
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
10
Src/Entities/IPlayerFactory.cs
Normal file
10
Src/Entities/IPlayerFactory.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Project.B.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 玩家工厂
|
||||
/// </summary>
|
||||
public interface IPlayerFactory:IEntitiesFactory
|
||||
{
|
||||
|
||||
}
|
||||
}
|
11
Src/Entities/IPlayerFactory.cs.meta
Normal file
11
Src/Entities/IPlayerFactory.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40f616061eb458a4c9ac203fe981a405
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user