Exemple #1
0
 private static bool TryCreateWreckable(ActorCommonData acd, out IMapMarker item, ref bool interested)
 {
     item = null;
     if (acd.x178_GizmoType == GizmoType.BreakableChest ||
         acd.x178_GizmoType == GizmoType.BreakableDoor ||
         acd.x178_GizmoType == GizmoType.DestroyableObject)
     {
         interested = true;
         if (IsValidGizmoWreckableObject(acd))
         {
             item = new MapMarkerAcdWreckable(acd, IsValidGizmoWreckableObject);
             return(true);
         }
     }
     return(false);
 }
		private static bool TryCreateWreckable(ActorCommonData acd, out IMapMarker item, ref bool interested)
		{
			item = null;
			if (acd.x180_GizmoType == GizmoType.BreakableChest ||
				acd.x180_GizmoType == GizmoType.BreakableDoor ||
				acd.x180_GizmoType == GizmoType.DestroyableObject)
			{
				interested = true;
				if (IsValidGizmoWreckableObject(acd))
				{
					item = new MapMarkerAcdWreckable(acd, IsValidGizmoWreckableObject);
					return true;
				}
			}
			return false;
		}