This commit is contained in:
CortexCore
2025-04-28 15:10:49 +08:00
parent 3f9d9f19ce
commit 4c2534a6e9
11 changed files with 72 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
"name": "Com.Project.B.Interaction",
"rootNamespace": "",
"references": [
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
"GUID:d750d221812bb1d48baff92e6ef73e28"
],
"includePlatforms": [],

View File

@@ -0,0 +1,15 @@
using System.Collections;
using System.Collections.Generic;
using BITKit;
namespace Net.Project.B.Interaction
{
public class DynamicInteractable:IWorldInteractable
{
public bool Enabled => Allow.Allow;
public readonly ValidHandle Allow=new();
public object WorldObject { get; set; }
public int Id { get; set; }
}
}

View File

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

View File

@@ -21,7 +21,7 @@ namespace Net.Project.B.Interaction
/// </summary>
public interface IWorldInteractable
{
public IWorldInteractionType InteractionType { get; }
public bool Enabled { get; }
public object WorldObject { get; set; }
public int Id { get; set; }
}

View File

@@ -10,7 +10,7 @@ namespace Net.Project.B.Interaction
[Serializable]
public class WorldInteractable : IWorldInteractable,IWorldNode
{
public IWorldInteractionType InteractionType => null;
public bool Enabled { get; set; } = true;
public object WorldObject { get; set; }
public int Id { get; set; }
}