def __get_agent_types(self, clazz=None): types = [] if clazz is None: clazz = app.get_main_entityobject() clazz = clazz.gethead() while clazz is not None: if clazz.hascomponent('ncFSMClass') and clazz.gethead() is None: types.append(clazz.getname()) types.extend(self.__get_agent_types(clazz)) clazz = clazz.getsucc() return types
def __get_agent_types(self, clazz=None): types = [] if clazz is None: clazz = app.get_main_entityobject() clazz = clazz.gethead() while clazz is not None: if clazz.hascomponent('ncFSMClass') and clazz.gethead() is None: types.append( clazz.getname() ) types.extend( self.__get_agent_types(clazz) ) clazz = clazz.getsucc() return types
def get_all_native_entities (self): entity_list = [] root_entity = app.get_main_entityobject() entity = root_entity.gethead() # visit all siblings while entity is not None: #two entities are not suitable, so exclude them entity_name = entity.getname() if entity_name != 'neoutdoorcell' \ and entity_name != 'neragdolllimb': entity_list.append(entity_name) entity = entity.getsucc() return entity_list
def is_save_allowed(self): if cmdmgrdlg.get_nclass_dirty_flag(): return True if servers.get_entity_class_server().getdirty(): return True return self.__is_dirty(app.get_main_entityobject())
def is_save_allowed(self): if cmdmgrdlg.get_nclass_dirty_flag(): return True if servers.get_entity_class_server().getdirty(): return True return self.__is_dirty( app.get_main_entityobject() )