public IEnumerable <BlockProperties> GetBlockTypes() { var materialType = new Dictionary <ushort, MaterialType> { { 0, MaterialType.Grassland }, { 1, MaterialType.MarbleFloor } }; var properties = new BlockProperties(); properties.SetBlockId(1); properties.SetMaterial((short)MaterialType.Grassland); yield return(properties); properties = new BlockProperties(); properties.SetBlockId(2); properties.SetMaterial((short)MaterialType.MarbleFloor); yield return(properties); }