Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiWorm0 committed Jul 20, 2023
2 parents 502ec5f + 736281f commit aacb135
Show file tree
Hide file tree
Showing 51 changed files with 1,133 additions and 294 deletions.
Binary file modified LevelImposter/Assets/Assets
Binary file not shown.
2 changes: 1 addition & 1 deletion LevelImposter/Assets/Assets.manifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ManifestFileVersion: 0
CRC: 4236672871
CRC: 2386985233
AssetBundleManifest:
AssetBundleInfos:
Info_0:
Expand Down
134 changes: 107 additions & 27 deletions LevelImposter/Assets/SerializedAssetDB.json
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,10 @@
"ID": "sab-comms_dial",
"Paths": [ "Background/Dial/DialTop" ]
},
{
"ID": "sab-comms_dialshadow",
"Paths": [ "Background/Dial/DialShad" ]
},
{
"ID": "sab-comms_glasspanel",
"Paths": [ "TopCurve/comms_panelGlass", "BottomCurve/comms_panelGlass" ]
Expand Down Expand Up @@ -2227,6 +2231,10 @@
"ID": "task-drill_bgoutline",
"Paths": [ "panel_drill_Phone" ]
},
{
"ID": "task-drill_btn",
"Paths": [ "panel_drill_alert_ul", "panel_drill_alert_ur", "panel_drill_alert_ll", "panel_drill_alert_lr" ]
},
{
"ID": "task-fans1_bg",
"Paths": [ "fans_BG" ]
Expand All @@ -2253,51 +2261,51 @@
},
{
"ID": "task-fuel1_bg",
"Paths": [ "First/Background" ]
"Paths": [ "Background" ]
},
{
"ID": "task-fuel1_wires",
"Paths": [ "First/Background/engineFuel_wires" ]
"Paths": [ "Background/engineFuel_wires" ]
},
{
"ID": "task-fuel1_btnbg",
"Paths": [ "First/Background/engineFuel_buttonBase" ]
"Paths": [ "Background/engineFuel_buttonBase" ]
},
{
"ID": "task-fuel1_btn",
"Paths": [ "First/Background/engineFuel_buttonBase/engineFuel_Button" ]
"Paths": [ "Background/engineFuel_buttonBase/engineFuel_Button" ]
},
{
"ID": "task-fuel1_redlight",
"Paths": [ "First/Background/engineFuel_buttonBase/redLight" ]
"Paths": [ "Background/engineFuel_buttonBase/redLight" ]
},
{
"ID": "task-fuel1_greenlight",
"Paths": [ "First/Background/engineFuel_buttonBase/GreenLight" ]
"Paths": [ "Background/engineFuel_buttonBase/GreenLight" ]
},
{
"ID": "task-fuel2_bg",
"Paths": [ "Second/Background" ]
"Paths": [ "Background" ]
},
{
"ID": "task-fuel2_wires",
"Paths": [ "Second/Background/engineFuel_wires" ]
"Paths": [ "Background/engineFuel_wires" ]
},
{
"ID": "task-fuel2_btnbg",
"Paths": [ "Second/Background/engineFuel_buttonBase" ]
"Paths": [ "Background/engineFuel_buttonBase" ]
},
{
"ID": "task-fuel2_btn",
"Paths": [ "Second/Background/engineFuel_buttonBase/engineFuel_Button" ]
"Paths": [ "Background/engineFuel_buttonBase/engineFuel_Button" ]
},
{
"ID": "task-fuel2_redlight",
"Paths": [ "Second/Background/engineFuel_buttonBase/redLight" ]
"Paths": [ "Background/engineFuel_buttonBase/redLight" ]
},
{
"ID": "task-fuel2_greenlight",
"Paths": [ "Second/Background/engineFuel_buttonBase/GreenLight" ]
"Paths": [ "Background/engineFuel_buttonBase/GreenLight" ]
},
{
"ID": "task-garbage_bg",
Expand Down Expand Up @@ -2562,7 +2570,11 @@
},
{
"ID": "task-records2_drawerfolder",
"Paths": [ "Part2-Drawer/Drawer/records_folderplaced (2)", "Part2-Drawer/Drawer/records_folderplaced (2)/records_folderplaced", "Part2-Drawer/Drawer/records_folderplaced (1)", "Part2-Drawer/Drawer/records_folderplaced" ]
"Paths": [ "Part2-Drawer/Drawer/records_folderplaced (2)", "Part2-Drawer/Drawer/records_folderplaced (2)/records_folderplaced", "Part2-Drawer/Drawer/records_folderplaced (1)", "Part2-Drawer/Drawer/records_folderplaced", "Part2-Drawer/Drawer/Targetfolder/targetFolder" ]
},
{
"ID": "task-records2_drawerside",
"Paths": [ "Part2-Drawer/Drawer/records_fileBG/records_fileside (1)", "Part2-Drawer/Drawer/records_fileBG/records_fileside" ]
},
{
"ID": "task-records2_drawerfront",
Expand Down Expand Up @@ -2896,6 +2908,10 @@
"ID": "task-temp1_btn",
"Paths": [ "panel_temp_button", "panel_temp_buttonDown" ]
},
{
"ID": "task-temp1_btndown",
"Paths": [ "panel_temp_button", "panel_temp_buttonDown" ]
},
{
"ID": "task-temp2_bg",
"Paths": [ "panel_temp_backgroundCold" ]
Expand All @@ -2904,6 +2920,10 @@
"ID": "task-temp2_btn",
"Paths": [ "panel_temp_button", "panel_temp_buttonDown" ]
},
{
"ID": "task-temp2_btndown",
"Paths": [ "panel_temp_button", "panel_temp_buttonDown" ]
},
{
"ID": "task-toilet_pipe",
"Paths": [ "toilet_pipesystem" ]
Expand Down Expand Up @@ -3018,59 +3038,59 @@
},
{
"ID": "task-waterjug1_leftoutline",
"Paths": [ "First/DestGauge/Outline" ]
"Paths": [ "DestGauge/Outline" ]
},
{
"ID": "task-waterjug1_leftbg",
"Paths": [ "First/DestGauge/panel_water_bg" ]
"Paths": [ "DestGauge/panel_water_bg" ]
},
{
"ID": "task-waterjug1_rightoutline",
"Paths": [ "First/SrcGauge/Outline" ]
"Paths": [ "SrcGauge/Outline" ]
},
{
"ID": "task-waterjug1_rightbg",
"Paths": [ "First/SrcGauge/panel_water_bg" ]
"Paths": [ "SrcGauge/panel_water_bg" ]
},
{
"ID": "task-waterjug1_btnup",
"Paths": [ "First/water_buttonUp" ]
"Paths": [ "water_buttonUp" ]
},
{
"ID": "task-waterjug1_leftwaterfill",
"Paths": [ "First/DestGauge/BackFillColor" ]
"Paths": [ "DestGauge/BackFillColor" ]
},
{
"ID": "task-waterjug1_rightwaterfill",
"Paths": [ "First/SrcGauge/BackFillColor" ]
"Paths": [ "SrcGauge/BackFillColor" ]
},
{
"ID": "task-waterjug2_leftoutline",
"Paths": [ "Second/SrcGauge/Outline" ]
"Paths": [ "SrcGauge/Outline" ]
},
{
"ID": "task-waterjug2_leftbg",
"Paths": [ "Second/SrcGauge/panel_water_bg" ]
"Paths": [ "SrcGauge/panel_water_bg" ]
},
{
"ID": "task-waterjug2_rightoutline",
"Paths": [ "Second/DestGauge/Outline" ]
"Paths": [ "DestGauge/Outline" ]
},
{
"ID": "task-waterjug2_rightbg",
"Paths": [ "Second/DestGauge/panel_water_bg" ]
"Paths": [ "DestGauge/panel_water_bg" ]
},
{
"ID": "task-waterjug2_btnup",
"Paths": [ "Second/water_buttonDown" ]
"Paths": [ "water_buttonDown" ]
},
{
"ID": "task-waterjug2_leftwaterfill",
"Paths": [ "Second/SrcGauge/BackFillColor" ]
"Paths": [ "SrcGauge/BackFillColor" ]
},
{
"ID": "task-waterjug2_rightwaterfill",
"Paths": [ "Second/DestGauge/BackFillColor" ]
"Paths": [ "DestGauge/BackFillColor" ]
},
{
"ID": "task-waterwheel1_bg",
Expand Down Expand Up @@ -3131,6 +3151,66 @@
{
"ID": "task-wires_wiretip2",
"Paths": [ "RightWires/RightWireNode (1)" ]
},
{
"ID": "util-computer_bg",
"Paths": [ "Background" ]
},
{
"ID": "sab-doorv_bg",
"Paths": [ "Background" ]
},
{
"ID": "sab-doorv_switch",
"Paths": [ "panel_door_breaker", "panel_door_breaker (1)", "panel_door_breaker (2)", "panel_door_breaker (3)", "panel_door_breaker (4)", "panel_door_breaker (5)", "panel_door_breaker (6)", "panel_door_breaker (7)" ]
},
{
"ID": "sab-doorv_leftslider",
"Paths": [ "admin_sliderTop" ]
},
{
"ID": "sab-doorv_rightslider",
"Paths": [ "admin_sliderBottom" ]
},
{
"ID": "sab-doorv_card",
"Paths": [ "admin_Card" ]
},
{
"ID": "sab-doorv_wallet",
"Paths": [ "admin_Wallet" ]
},
{
"ID": "sab-doorv_walletmask",
"Paths": [ "admin_Wallet/admin_walletFront" ]
},
{
"ID": "sab-doorh_bg",
"Paths": [ "Background" ]
},
{
"ID": "sab-doorh_switch",
"Paths": [ "panel_door_breaker", "panel_door_breaker (1)", "panel_door_breaker (2)", "panel_door_breaker (3)", "panel_door_breaker (4)", "panel_door_breaker (5)", "panel_door_breaker (6)", "panel_door_breaker (7)" ]
},
{
"ID": "sab-doorh_leftslider",
"Paths": [ "admin_sliderTop" ]
},
{
"ID": "sab-doorh_rightslider",
"Paths": [ "admin_sliderBottom" ]
},
{
"ID": "sab-doorh_card",
"Paths": [ "admin_Card" ]
},
{
"ID": "sab-doorh_wallet",
"Paths": [ "admin_Wallet" ]
},
{
"ID": "sab-doorh_walletmask",
"Paths": [ "admin_Wallet/admin_walletFront" ]
}
]
}
Binary file modified LevelImposter/Assets/shop
Binary file not shown.
4 changes: 2 additions & 2 deletions LevelImposter/Assets/shop.manifest
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ManifestFileVersion: 0
CRC: 3671206851
CRC: 3599790525
Hashes:
AssetFileHash:
serializedVersion: 2
Hash: ae38b42d2cd4dcb3d865da9d9fc8dd7c
Hash: e2dbbc72aa56e5fcbee1c2078a7f2c27
TypeTreeHash:
serializedVersion: 2
Hash: afd525e58be886efe4d69cac465cee90
Expand Down
3 changes: 3 additions & 0 deletions LevelImposter/Builders/BuildRouter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ public class BuildRouter
new SpawnBuilder(),
new VentBuilder(),
new CamBuilder(),
new DisplayBuilder(),
new TaskBuilder(),
new DecBuilder(),
new PhysicsObjectBuilder(),
new MeetingBuilder(),
new OneWayColliderBuilder(),

new SabBuilder(),
new SabConsoleBuilder(),
Expand All @@ -37,6 +39,7 @@ public class BuildRouter
new PlatformBuilder(),
new StarfieldBuilder(),
new FloatBuilder(),
new ScrollBuilder(),
new AmbientSoundBuilder(),
new StepSoundBuilder(),
new TeleBuilder(),
Expand Down
38 changes: 24 additions & 14 deletions LevelImposter/Builders/Generic/ColliderBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Il2CppSystem.Collections.Generic;
using UnityEngine;
using LevelImposter.Core;
using System.Linq;

namespace LevelImposter.Builders
{
Expand All @@ -9,6 +10,11 @@ namespace LevelImposter.Builders
/// </summary>
public class ColliderBuilder : IElemBuilder
{
private static string[] SHADOW_ONLY_TYPES = new string[]
{
"util-onewaycollider"
};

public void Build(LIElement elem, GameObject obj)
{
if (elem.properties.colliders == null)
Expand All @@ -17,20 +23,6 @@ public void Build(LIElement elem, GameObject obj)
// Iterate through colliders
foreach (LICollider colliderData in elem.properties.colliders)
{
// PolygonCollider2D
if (colliderData.isSolid)
{
PolygonCollider2D collider = obj.AddComponent<PolygonCollider2D>();
collider.pathCount = 1;
collider.SetPath(0, GetPoints(colliderData));
}
// EdgeCollider2D
else
{
EdgeCollider2D collider = obj.AddComponent<EdgeCollider2D>();
collider.SetPoints(GetPoints(colliderData));
}

// Shadow Object
if (colliderData.blocksLight)
{
Expand All @@ -44,6 +36,24 @@ public void Build(LIElement elem, GameObject obj)
EdgeCollider2D shadowCollider = shadowObj.AddComponent<EdgeCollider2D>();
shadowCollider.SetPoints(GetPoints(colliderData, colliderData.isSolid));
}

// Shadow Only
if (SHADOW_ONLY_TYPES.Contains(elem.type))
continue;

// PolygonCollider2D
if (colliderData.isSolid)
{
PolygonCollider2D collider = obj.AddComponent<PolygonCollider2D>();
collider.pathCount = 1;
collider.SetPath(0, GetPoints(colliderData));
}
// EdgeCollider2D
else
{
EdgeCollider2D collider = obj.AddComponent<EdgeCollider2D>();
collider.SetPoints(GetPoints(colliderData));
}
}
}

Expand Down
Loading

0 comments on commit aacb135

Please sign in to comment.