本文整理汇总了Python中micropsi_core.world.worldobject.WorldObject类的典型用法代码示例。如果您正苦于以下问题:Python WorldObject类的具体用法?Python WorldObject怎么用?Python WorldObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WorldObject类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, world, uid=None, **data):
self.datasources = {}
for key in self.supported_datasources:
self.datasources[key] = 0
self.datatargets = {}
for key in self.supported_datatargets:
self.datatargets[key] = 0
self.datatarget_feedback = {}
self.datasource_lock = Lock()
self.datasource_snapshots = {}
WorldObject.__init__(self, world, category="agents", uid=uid, **data)
self.snapshot()
示例2: __init__
def __init__(self, world, type, uid=None, **data):
WorldObject.__init__(self, world, type, uid=uid, **data)
self.lines = data.get('line_names')
self.name = data.get('name')
示例3: __init__
def __init__(self, world, uid=None, **data):
WorldObject.__init__(self, world, category="objects", uid=uid, **data)
self.structured_object_type = "Waterhole"
示例4: __init__
def __init__(self, world, uid=None, **data):
self.datasources = {}
self.datatargets = {}
self.datatarget_feedback = {}
self.datasource_lock = Lock()
WorldObject.__init__(self, world, category='agents', uid=uid, **data)