- where airyBlock.BlockMaterial == EnumBlockMaterial.Plant || airyBlock.BlockMaterial == EnumBlockMaterial.Leaves
- where airyBlock.CollisionBoxes == null || airyBlock.CollisionBoxes.Length == 0 ||airyBlock.RainPermeable == true
- select airyBlock;
- //^^ 'Solid' phase - 'Plant' Blocks without any boundg box ? Except water...
- this.AiryIdCodes = airBlocksQuery.ToDictionary(aBlk => aBlk.BlockId, aBlk => aBlk.Code.Path);
-
- //Add special marker types for BlockID's of "Interest", overwrite colour, and method
- Reload_POI_Designators();
+ where airyBlock.BlockMaterial == EnumBlockMaterial.Plant || airyBlock.BlockMaterial == EnumBlockMaterial.Leaves
+ where airyBlock.CollisionBoxes == null || airyBlock.CollisionBoxes.Length == 0 || airyBlock.RainPermeable == true
+ select airyBlock;
+ //^^ 'Solid' phase - 'Plant' Blocks without any bounding-box; OR 'Invisible' shapes...
+ var invisibleBlocksQuery = from novisBlock in ClientAPI.World.Blocks
+ where novisBlock.Shape == null || novisBlock.Shape.Base.EndsWith(GlobalConstants.DefaultDomain, @"invisible") //Whaat! [ base: "block/basic/invisible" ]
+ select novisBlock;
+ this.AiryIdCodes = airBlocksQuery.Union(invisibleBlocksQuery).ToDictionary(aBlk => aBlk.BlockId, aBlk => aBlk.Code.Path);
+
+ #if DEBUG
+ foreach (var fluffBlock in AiryIdCodes) {
+ Logger.VerboseDebug("ID#\t{0}:\t{1} IGNORED", fluffBlock.Key, fluffBlock.Value);
+ }
+ Logger.VerboseDebug("Ignoring {0} blocks", AiryIdCodes.Count);
+ #endif
+
+ //Add special marker types for BlockID's of "Interest", overwrite colour, and method
+ Reload_POI_Designators();