1
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"name": "Com.Project.B.Interaction",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:d750d221812bb1d48baff92e6ef73e28"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
|
15
Src/Interaction/IDynamicInteractable.cs
Normal file
15
Src/Interaction/IDynamicInteractable.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
11
Src/Interaction/IDynamicInteractable.cs.meta
Normal file
11
Src/Interaction/IDynamicInteractable.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5cb35ec740d0fb4483ab848af4a0f19
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -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; }
|
||||
}
|
||||
|
@@ -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; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user