Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2006, 5:38:53 PM (19 years ago)
Author:
bensch
Message:

toList editable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/world_entities/world_entity.cc

    r9494 r9513  
    141141  .describe("The Health the WorldEntity has at this moment")
    142142  .defaultValues(1.0f);
     143
     144  LoadParam(root, "list", this, WorldEntity, toListS);
    143145}
    144146
     
    478480}
    479481
     482void WorldEntity::toListS(const std::string& listName)
     483{
     484  OM_LIST id = ObjectManager::StringToOMList(listName);
     485  if (id != OM_NULL)
     486    this->toList(id);
     487  else
     488    PRINTF(2)("List %s not found\n", listName.c_str());
     489}
     490
     491
    480492void WorldEntity::toReflectionList()
    481493{
     
    822834  PRINT(0)("WorldEntity %s::%s  (DEBUG)\n", this->getClassCName(), this->getCName());
    823835  this->debugNode();
    824   PRINT(0)("List: %s ; ModelCount %d - ", ObjectManager::OMListToString(this->objectListNumber) , this->models.size());
     836  PRINT(0)("List: %s ; ModelCount %d - ", ObjectManager::OMListToString(this->objectListNumber).c_str(), this->models.size());
    825837  for (unsigned int i = 0; i < this->models.size(); i++)
    826838  {
Note: See TracChangeset for help on using the changeset viewer.