private static bool TryCreateChest(ActorCommonData acd, out IMapMarker item, ref bool interested) { item = null; if (acd.x178_GizmoType == GizmoType.Chest) { interested = true; if (IsValidGizmoChest(acd)) { item = new MapMarkerAcdChest(acd, IsValidGizmoChest); return(true); } } else if (acd.x178_GizmoType == GizmoType.LoreChest) { interested = true; if (IsValidGizmoLoreChest(acd)) { item = new MapMarkerAcdChest(acd, IsValidGizmoLoreChest); return(true); } } else if (acd.x178_GizmoType == GizmoType.Switch) { interested = true; switch (acd.x090_ActorSnoId) { case 0x0005900F: // x1_Global_Chest_CursedChest case 0x00059229: // x1_Global_Chest_CursedChest_B item = new MapMarkerAcdCursedChest(acd, IsValidSwitchCursedChest); return(true); } } return(false); }
private static bool TryCreateChest(ActorCommonData acd, out IMapMarker item, ref bool interested) { item = null; if (acd.x180_GizmoType == GizmoType.Chest) { interested = true; if (IsValidGizmoChest(acd)) { item = new MapMarkerAcdChest(acd, IsValidGizmoChest); return true; } } else if (acd.x180_GizmoType == GizmoType.LoreChest) { interested = true; if (IsValidGizmoLoreChest(acd)) { item = new MapMarkerAcdChest(acd, IsValidGizmoLoreChest); return true; } } else if (acd.x180_GizmoType== GizmoType.Switch) { interested = true; switch (acd.x090_ActorSnoId) { case 0x0005900F: // x1_Global_Chest_CursedChest case 0x00059229: // x1_Global_Chest_CursedChest_B item = new MapMarkerAcdCursedChest(acd, IsValidSwitchCursedChest); return true; } } return false; }