Fake.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:UPBGE-CommunityAddon 作者: elmeunick9 项目源码 文件源码
def __init__(self, Class):
        self.uniforms = []
        self.program = None
        self.error = 0

        for key, value in Class.__dict__.items() :
            if key.startswith('__'): continue
            if inspect.ismethod(getattr(Class, key)): continue
            if inspect.isfunction(getattr(Class, key)): continue

            self.__dict__[key] = value
            self.uniforms.append(key)

        if not self.owner:
            from bge import logic
            self.owner = logic.getCurrentController().owner

        self.uniforms = [x for x in self.uniforms if x not in self.owner.getPropertyNames()]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号