1
This commit is contained in:
18
Src/WorldNode/Net.Project.B.WorldNode.asmdef
Normal file
18
Src/WorldNode/Net.Project.B.WorldNode.asmdef
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "Net.Project.B.WorldNode",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:d750d221812bb1d48baff92e6ef73e28",
|
||||
"GUID:49b49c76ee64f6b41bf28ef951cb0e50"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
7
Src/WorldNode/Net.Project.B.WorldNode.asmdef.meta
Normal file
7
Src/WorldNode/Net.Project.B.WorldNode.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aab9e82873ffb00498c7fcaca7aee8ca
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
32
Src/WorldNode/UnityDoorNode.cs
Normal file
32
Src/WorldNode/UnityDoorNode.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit.WorldNode;
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
using UnityEngine;
|
||||
#endif
|
||||
|
||||
namespace Net.Project.B.WorldNode
|
||||
{
|
||||
public enum UnityDoorState
|
||||
{
|
||||
NoState,
|
||||
Opened,
|
||||
Closed,
|
||||
Disabled,
|
||||
Locked,
|
||||
}
|
||||
[Serializable]
|
||||
public struct UnityDoorNode:IWorldNode
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public object WorldObject { get; set; }
|
||||
public UnityDoorState State;
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
public Vector3 OpenPosition;
|
||||
public Vector3 ClosePosition;
|
||||
public Vector3 OpenEulerAngles;
|
||||
public Vector3 CloseEulerAngles;
|
||||
#endif
|
||||
}
|
||||
}
|
11
Src/WorldNode/UnityDoorNode.cs.meta
Normal file
11
Src/WorldNode/UnityDoorNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a37e0529e2612444907c25dbbbc5565
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
22
Src/WorldNode/UnityItemNode.cs
Normal file
22
Src/WorldNode/UnityItemNode.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit;
|
||||
using BITKit.WorldNode;
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
using UnityEngine;
|
||||
#endif
|
||||
namespace Net.Project.B.WorldNode
|
||||
{
|
||||
[Serializable]
|
||||
public struct UnityItemNode : IWorldNode
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public object WorldObject { get; set; }
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
[SerializeReference, SubclassSelector]
|
||||
#endif
|
||||
private IReference itemPath;
|
||||
public string ItemPath => itemPath.Value;
|
||||
}
|
||||
}
|
11
Src/WorldNode/UnityItemNode.cs.meta
Normal file
11
Src/WorldNode/UnityItemNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4152eadbfda5584889fc1debfcae88a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user