• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python util._uintify函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中util._uintify函数的典型用法代码示例。如果您正苦于以下问题:Python _uintify函数的具体用法?Python _uintify怎么用?Python _uintify使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了_uintify函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: read_block_flags

    def read_block_flags(self, x, y, z):
        bf = BlockFlags()

        ux, uy, uz = _uintify(x, y, z)

        if libdfhack.Maps_ReadBlockFlags(self._map_ptr, ux, uy, uz, byref(bf)) > 0:
            return bf
        else:
            return None
开发者ID:sizeak,项目名称:dfhack,代码行数:9,代码来源:maps.py


示例2: read_occupancy

    def read_occupancy(self, x, y, z):
        o = Occupancies40d()

        ux, uy, uz = _uintify(x, y, z)

        if libdfhack.Maps_ReadDesignations(self._map_ptr, ux, uy, uz, o) > 0:
            return o
        else:
            return None
开发者ID:sizeak,项目名称:dfhack,代码行数:9,代码来源:maps.py


示例3: read_temperatures

    def read_temperatures(self, x, y, z):
        t = Temperatures()

        ux, uy, uz = _uintify(x, y, z)

        if libdfhack.Maps_ReadDesignations(self._map_ptr, ux, uy, uz, t) > 0:
            return t
        else:
            return None
开发者ID:sizeak,项目名称:dfhack,代码行数:9,代码来源:maps.py


示例4: read_features

    def read_features(self, x, y, z):
        lf = c_short()
        gf = c_short()

        ux, uy, uz = _uintify(x, y, z)

        libdfhack.Maps_ReadFeatures(self._map_ptr, ux, uy, uz, byref(lf), byref(fg))

        return (lf, gf)
开发者ID:sizeak,项目名称:dfhack,代码行数:9,代码来源:maps.py


示例5: read_designations

    def read_designations(self, x, y, z):
        d = Designations40d()

        ux, uy, uz = _uintify(x, y, z)

        if libdfhack.Maps_ReadDesignations(self._map_ptr, ux, uy, uz, d) > 0:
            return d
        else:
            return None
开发者ID:sizeak,项目名称:dfhack,代码行数:9,代码来源:maps.py


示例6: read_tile_types

    def read_tile_types(self, x, y, z):
        tt = TileTypes40d()

        ux, uy, uz = _uintify(x, y, z)

        if libdfhack.Maps_ReadTileTypes(self._map_ptr, ux, uy, uz, tt) > 0:
            return tt
        else:
            return None
开发者ID:sizeak,项目名称:dfhack,代码行数:9,代码来源:maps.py


示例7: read_region_offsets

    def read_region_offsets(self, x, y, z):
        bi = BiomeIndices40d()

        ux, uy, uz = _uintify(x, y, z)

        if libdfhack.Maps_ReadRegionOffsets(self._map_ptr, ux, uy, uz, byref(bi)) > 0:
            return bi
        else:
            return None
开发者ID:sizeak,项目名称:dfhack,代码行数:9,代码来源:maps.py


示例8: read_dirty_bit

    def read_dirty_bit(self, x, y, z):
        bit = c_int(0)

        ux, uy, uz = _uintify(x, y, z)

        if libdfhack.Maps_ReadDirtyBit(self._map_ptr, ux, uy, uz, byref(bit)) > 0:
            if bit > 0:
                return True
            else:
                return False
        else:
            return None
开发者ID:sizeak,项目名称:dfhack,代码行数:12,代码来源:maps.py


示例9: write_tile_types

 def write_tile_types(self, x, y, z, tt):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_WriteTileTypes(self._map_ptr,  ux, uy, uz, tt) > 0
开发者ID:sizeak,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例10: is_valid_block

 def is_valid_block(self, x, y, z):
     return libdfhack.Maps_isValidBlock(self._map_ptr, *_uintify(x, y, z)) > 0
开发者ID:sizeak,项目名称:dfhack,代码行数:2,代码来源:maps.py


示例11: read_vegetation

 def read_vegetation(self, x, y, z):
     ux, uy, uz = _uintify(x, y, z)
     
     return check_pointer_cache(libdfhack.Maps_ReadVegetation(self._map_ptr, ux, uy, uz))
开发者ID:NonRealDeveloper,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例12: write_designations

 def write_designations(self, x, y, z, o):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_WriteDesignations(self._map_ptr, ux, uy, uz, o) > 0
开发者ID:sizeak,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例13: write_global_feature

 def write_global_feature(self, x, y, z, global_feature = -1):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_WriteGlobalFeature(self._map_ptr, ux, uy, uz, c_short(global_feature)) > 0
开发者ID:sizeak,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例14: write_dirty_bit

 def write_dirty_bit(self, x, y, z, dirty):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_WriteDirtyBit(self._map_ptr, ux, uy, uz, c_int(dirty)) > 0
开发者ID:sizeak,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例15: read_spatter_veins

 def read_spatter_veins(self, x, y, z):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_ReadSpatterVeins(self._map_ptr, ux, uy, uz)
开发者ID:nickrart,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例16: read_frozen_veins

 def read_frozen_veins(self, x, y, z):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_ReadFrozenVeins(self._map_ptr, ux, uy, uz)
开发者ID:nickrart,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例17: read_veins

 def read_veins(self, x, y, z):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_ReadStandardVeins(self._map_ptr, ux, uy, uz)
开发者ID:nickrart,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例18: write_temperatures

 def write_temperatures(self, x, y, z, t):
     ux, uy, uz = _uintify(x, y, z)
     
     return libdfhack.Maps_WriteDesignations(self._map_ptr, ux, uy, uz, t) > 0
开发者ID:sizeak,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例19: read_grass_veins

 def read_grass_veins(self, x, y, z):
     ux, uy, uz = _uintify(x, y, z)
     
     return check_pointer_cache(libdfhack.Maps_ReadGrassVeins(self._map_ptr, ux, uy, uz))
开发者ID:NonRealDeveloper,项目名称:dfhack,代码行数:4,代码来源:maps.py


示例20: read_world_constructions

 def read_world_constructions(self, x, y, z):
     ux, uy, uz = _uintify(x, y, z)
     
     return check_pointer_cache(libdfhack.Maps_ReadWorldConstructions(self._map_ptr, ux, uy, uz))
开发者ID:NonRealDeveloper,项目名称:dfhack,代码行数:4,代码来源:maps.py



注:本文中的util._uintify函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python util.add_standard_options_to函数代码示例发布时间:2022-05-27
下一篇:
Python util._testHost函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap