Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directionnal adjacencies #1303

Merged
merged 97 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
9374d29
readd some tilehelper methods
stilnat Oct 6, 2023
a2ed930
readd door
stilnat Oct 6, 2023
98f6d2f
add simple adjacency
stilnat Oct 6, 2023
373abd0
add advanced connector
stilnat Oct 6, 2023
501afeb
rename door script
stilnat Oct 6, 2023
633cb53
making door connections work
stilnat Oct 7, 2023
0374581
remove wrong method
stilnat Oct 7, 2023
2318831
change a bit setup of map
stilnat Oct 7, 2023
8e3e3e4
add wall connector
stilnat Oct 7, 2023
f19395b
expand interface and implement
stilnat Oct 7, 2023
554990b
fixed advanced adjacency
stilnat Oct 7, 2023
2279463
Merge branch 'develop' into integrate-doors-properly
stilnat Oct 8, 2023
7da9a5c
fix multiadjcon
stilnat Oct 8, 2023
386696e
add abstract horizontal connector class
stilnat Oct 8, 2023
b786888
fix airlock generic type
stilnat Oct 8, 2023
f9f2f88
trying to fix edge case for wall connector
stilnat Oct 8, 2023
f8256d6
fix edge case wall, fix advancedAdjacency
stilnat Oct 8, 2023
d525f8b
fix pipes
stilnat Oct 9, 2023
6db61b2
change pipe tile layers
stilnat Oct 9, 2023
9a3bf00
fix generic and specific type editablke in editor (should not)
stilnat Oct 9, 2023
f0c7b55
some doc and some cleanup
stilnat Oct 9, 2023
385a822
fixing disposal pipes
stilnat Oct 10, 2023
cc6ff5e
make disposal pipe connect to disposal stuff
stilnat Oct 10, 2023
5422a11
remove multiple mesh on disposal pipe
stilnat Oct 14, 2023
05d84dc
fix position
stilnat Oct 14, 2023
65ff6e9
fix some stuff for disposal
stilnat Oct 17, 2023
c430ba7
Partly make dinnerbooth work
stilnat Oct 17, 2023
5351fca
no more than 2 connections for couches
stilnat Oct 17, 2023
4982156
simplify Lin Lout rotation computation
stilnat Oct 17, 2023
686e0f0
add some more helpers
stilnat Oct 17, 2023
7f293b2
add list extension
stilnat Oct 17, 2023
879674d
solve some direction resolving for directionnals
stilnat Oct 17, 2023
2ce4a89
add atdirectionof method
stilnat Oct 19, 2023
848c128
use neighbour instead of neighbour directions
stilnat Oct 19, 2023
fe700c0
same
stilnat Oct 19, 2023
b65681a
paradigm changes
stilnat Oct 20, 2023
5f07e7c
little comment
stilnat Oct 20, 2023
6596d63
huge refactor
stilnat Oct 24, 2023
837b46e
some fix and update neighbours if itself get updated
stilnat Oct 24, 2023
c9723ac
add connection number
stilnat Oct 24, 2023
f878795
add condition for u shapes
stilnat Oct 24, 2023
3f955cf
remove conditions and keep only neighbours with lt 2 connections
stilnat Oct 24, 2023
67bad3b
add diagonal directions for lin lout
stilnat Oct 24, 2023
4c1ba31
update comments
stilnat Oct 26, 2023
8de3558
fixing more adjacencies
stilnat Oct 30, 2023
bb9b20a
add some helper method
stilnat Oct 30, 2023
9d786d9
almost there
stilnat Oct 30, 2023
6812760
works completely !
stilnat Oct 30, 2023
bea077f
everything works for real this time
stilnat Oct 30, 2023
8d53afd
some refactoring and clean up and doc
stilnat Oct 31, 2023
d32abc4
add disposal furniture connector
stilnat Nov 1, 2023
06b8708
little stuff for adjacencymap
stilnat Nov 1, 2023
9422baa
method for PlacedTileObject
stilnat Nov 1, 2023
0c788c9
updating IAdjacencyConnector and all that depends on it
stilnat Nov 1, 2023
26dacb3
adding the disposal connector scripts to prefabs
stilnat Nov 1, 2023
41b7ff3
add world origin for placed tile object.
stilnat Nov 1, 2023
c2792c7
update neighbour if itself is updated
stilnat Nov 1, 2023
ee2cf6c
make disposal pipe work
stilnat Nov 1, 2023
79ef959
remove random using
stilnat Nov 1, 2023
3a56f32
fix disposal pipes
stilnat Nov 2, 2023
b8fcf52
remove neighbour objects parameter from updateAllConnections
stilnat Nov 2, 2023
6c2ba53
doc on the interface
stilnat Nov 2, 2023
838f3bb
clean doc
stilnat Nov 2, 2023
caf3bc2
Merge branch 'develop' into integrate-doors-properly
stilnat Nov 2, 2023
700b8c6
put back the right disposal pipes file
stilnat Nov 2, 2023
11cc540
complete doc
stilnat Nov 2, 2023
ab131dc
update disposal pipes generic type
stilnat Nov 2, 2023
b7af0db
Merge branch 'develop' into integrate-doors-properly
stilnat Nov 5, 2023
68a3caa
adapt code to multiple tile objects
stilnat Nov 5, 2023
f7d06e4
remove multi adjacency update some prefabs
stilnat Nov 5, 2023
d9f33f8
fix missing scripts
stilnat Nov 6, 2023
178bb63
fix build
stilnat Nov 6, 2023
76812b9
added x6 from steelwall for steelwall reinforced
stilnat Nov 9, 2023
b9d183b
fix plenum ?
stilnat Nov 9, 2023
8f1825b
fix indentation
stilnat Nov 9, 2023
5113da9
fix X6 for reinforced steel windows
stilnat Nov 9, 2023
7b3a504
changed material of disposal pipes
stilnat Nov 9, 2023
2f82921
Revert "fix indentation"
stilnat Nov 9, 2023
3e432e8
Merge branch 'develop' into integrate-doors-properly
stilnat Nov 9, 2023
1f47813
fix indentation
stilnat Nov 9, 2023
47f79cc
Merge branch 'develop' into Directionnal-adjacencies
stilnat Nov 9, 2023
df31ad1
Merge branch 'integrate-doors-properly' into Directionnal-adjacencies
stilnat Nov 9, 2023
ed4fa83
fix errors introduced by merge
stilnat Nov 10, 2023
d8a3058
update doc
stilnat Nov 10, 2023
0ec63d2
Merge branch 'develop' into Directionnal-adjacencies
stilnat Nov 10, 2023
0672581
applied palette on dinerbooth fbx
stilnat Nov 10, 2023
6e9eb9e
updated dinnerbooth asset
stilnat Nov 10, 2023
b2b2e1d
remove test scene
stilnat Nov 10, 2023
7d48b30
add working client
stilnat Nov 10, 2023
ee8fc50
Merge branch 'develop' into Directionnal-adjacencies
stilnat Nov 10, 2023
827485a
Merge branch 'develop' into Directionnal-adjacencies
stilnat Nov 10, 2023
2b1badb
Merge branch 'develop' into Directionnal-adjacencies
stilnat Nov 11, 2023
3ba1198
fix diagonal directionnals not working
stilnat Nov 11, 2023
53be5a5
do some clean up
stilnat Nov 13, 2023
62dc2d7
update doc
stilnat Nov 13, 2023
bae4aa7
rename with a single n
stilnat Nov 13, 2023
89afc40
remove shadows and add collider
stilnat Nov 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
111 changes: 111 additions & 0 deletions Assets/Art/Models/Furniture/Generic/Seats/DinerBooth.fbx.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4584c35d672b8a74797cc5efa123ce16, type: 3}
m_Name: DinnerBooth
m_EditorClassIdentifier:
nameString: DinnerBooth
prefab: {fileID: 8085678556641831659, guid: 85fa4c9b76b4b23458dcf24a745a1dfe, type: 3}
icon: {fileID: 0}
layer: 7
genericType: 5
specificType: 0
width: 1
height: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Assets/Content/Scenes/Game.unity
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1506918115}
m_RootOrder: 12
m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &606666310
MonoBehaviour:
Expand All @@ -571,7 +571,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ec289a6c0bd24ed40abf0457a8690915, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 3
_componentIndexCache: 4
_addedNetworkObject: {fileID: 1506918116}
_networkObjectCache: {fileID: 1506918116}
--- !u!1 &616353822
Expand Down Expand Up @@ -1384,7 +1384,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4468402021075485018, guid: cc5383d385556f443b2a7d3202f2b2c1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -229.99995
value: -230.00003
objectReference: {fileID: 0}
- target: {fileID: 4468402021449001342, guid: cc5383d385556f443b2a7d3202f2b2c1, type: 3}
propertyPath: m_AnchoredPosition.x
Expand Down Expand Up @@ -1708,6 +1708,7 @@ Transform:
- {fileID: 439774647}
- {fileID: 1980231549}
- {fileID: 820019861}
- {fileID: 606666309}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand All @@ -1731,6 +1732,7 @@ MonoBehaviour:
- {fileID: 439774648}
- {fileID: 1980231551}
- {fileID: 820019862}
- {fileID: 606666310}
<ParentNetworkObject>k__BackingField: {fileID: 0}
<ChildNetworkObjects>k__BackingField:
- {fileID: 516802435}
Expand Down
142 changes: 142 additions & 0 deletions Assets/Content/WorldObjects/Furniture/Generic/Seats/DinnerBooth.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
%YAML 1.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add collision to this prefab
  • Remove cast shadows from this prefab

%TAG !u! tag:unity3d.com,2011:
--- !u!1 &8085678556641831659
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1750478436839435592}
- component: {fileID: 7418334817260183665}
- component: {fileID: 1740478804813226977}
- component: {fileID: 7950383285113202337}
- component: {fileID: 8031370004641457100}
m_Layer: 0
m_Name: DinnerBooth
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1750478436839435592
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8085678556641831659}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 9.950995, y: 0.52496845, z: 0.5001033}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7418334817260183665
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8085678556641831659}
m_Mesh: {fileID: 559316708432223863, guid: bcf01b0847ef6d843ae7613281a81df1, type: 3}
--- !u!23 &1740478804813226977
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8085678556641831659}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 695c4de41b9578049a93f19b1eef7213, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &7950383285113202337
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8085678556641831659}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 479fbe67c0de04b449f924bc5462ede3, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 0
_addedNetworkObject: {fileID: 8031370004641457100}
_networkObjectCache: {fileID: 8031370004641457100}
AdjacencyResolver:
o: {fileID: 559316708432223863, guid: bcf01b0847ef6d843ae7613281a81df1, type: 3}
uLeft: {fileID: -8315600635035084004, guid: bcf01b0847ef6d843ae7613281a81df1, type: 3}
uRight: {fileID: -8218306467633424491, guid: bcf01b0847ef6d843ae7613281a81df1, type: 3}
i: {fileID: -2434755278463371002, guid: bcf01b0847ef6d843ae7613281a81df1, type: 3}
lIn: {fileID: -8550456321050019914, guid: bcf01b0847ef6d843ae7613281a81df1, type: 3}
lOut: {fileID: -819412828331094011, guid: bcf01b0847ef6d843ae7613281a81df1, type: 3}
--- !u!114 &8031370004641457100
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8085678556641831659}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 26b716c41e9b56b4baafaf13a523ba2e, type: 3}
m_Name:
m_EditorClassIdentifier:
<IsNested>k__BackingField: 0
<ComponentIndex>k__BackingField: 0
<PredictedSpawn>k__BackingField: {fileID: 0}
_networkBehaviours:
- {fileID: 7950383285113202337}
<ParentNetworkObject>k__BackingField: {fileID: 0}
<ChildNetworkObjects>k__BackingField: []
SerializedTransformProperties:
Position: {x: 9.950995, y: 0.52496845, z: 0.5001033}
Rotation: {x: 0, y: 0, z: 0, w: 1}
LocalScale: {x: 1, y: 1, z: 1}
_isNetworked: 1
_isGlobal: 0
_initializeOrder: 0
_defaultDespawnType: 0
NetworkObserver: {fileID: 0}
<PrefabId>k__BackingField: 0
<SpawnableCollectionId>k__BackingField: 0
_scenePathHash: 0
<SceneId>k__BackingField: 0
<AssetPathHash>k__BackingField: 3148903556074791268

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@ public enum AdjacencyShape
TSouthWestEast,
//Vertical
Vertical,
// Directional
LIn,
LOut,
ULeft,
URight,
}
}
Loading
Loading