1
This commit is contained in:
@@ -9,7 +9,6 @@ namespace Net.Project.B.Mark
|
||||
public interface IMarkType{}
|
||||
public interface IMarkComponent
|
||||
{
|
||||
public float3 Position { get; }
|
||||
public IMarkType MarkType { get; }
|
||||
}
|
||||
public class PositionMark:IMarkComponent{}
|
||||
}
|
||||
|
68
Src/Mark/MarkNodes.cs
Normal file
68
Src/Mark/MarkNodes.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Security;
|
||||
using BITKit.WorldNode;
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
using BITKit;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Net.Project.B.Mark
|
||||
{
|
||||
[Serializable]
|
||||
public class LandMark:IWorldNode
|
||||
{
|
||||
[SerializeField] private string name;
|
||||
[SerializeReference,SubclassSelector] private IReference iconName;
|
||||
public string Name => name;
|
||||
public string IconName => iconName?.Value;
|
||||
}
|
||||
|
||||
public enum DefaultLandMarks
|
||||
{
|
||||
None,
|
||||
|
||||
// Medical
|
||||
Hospital,
|
||||
Clinic,
|
||||
Pharmacy,
|
||||
EmergencyRoom,
|
||||
|
||||
// Education
|
||||
School,
|
||||
University,
|
||||
Kindergarten,
|
||||
Library,
|
||||
|
||||
// Transportation
|
||||
SubwayStation,
|
||||
BusStation,
|
||||
TrainStation,
|
||||
TaxiStand,
|
||||
|
||||
// Government & Public
|
||||
PoliceStation,
|
||||
FireStation,
|
||||
CityHall,
|
||||
PostOffice,
|
||||
|
||||
// Commercial
|
||||
Supermarket,
|
||||
Mall,
|
||||
ConvenienceStore,
|
||||
GasStation,
|
||||
|
||||
// Residential
|
||||
ApartmentBuilding,
|
||||
SuburbanHouse,
|
||||
ParkingLot,
|
||||
Park
|
||||
}
|
||||
[Serializable]
|
||||
public struct DefaultLandMark : IReference
|
||||
{
|
||||
public DefaultLandMarks landMarks;
|
||||
public string Get() => landMarks.ToString();
|
||||
}
|
||||
}
|
||||
#endif
|
11
Src/Mark/MarkNodes.cs.meta
Normal file
11
Src/Mark/MarkNodes.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f992ed7e9494ef64aa99ad6521786b29
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -9,7 +9,7 @@ namespace Net.Project.B.Mark
|
||||
void Mark(int id);
|
||||
void CancelMark(int id);
|
||||
public event Action<int, bool> OnMark;
|
||||
IReadOnlyCollection<int> InMarking { get; }
|
||||
HashSet<int> InMarking { get; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,8 @@
|
||||
"references": [
|
||||
"GUID:d8b63aba1907145bea998dd612889d6b",
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:d750d221812bb1d48baff92e6ef73e28"
|
||||
"GUID:d750d221812bb1d48baff92e6ef73e28",
|
||||
"GUID:49b49c76ee64f6b41bf28ef951cb0e50"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
Reference in New Issue
Block a user