Example #1
0
  //
  // Load
  //
  // Load a task
  //
  Task * LoadTask(GameObj *subject, FScope *fScope)
  {
    const char *name = fScope->NextArgString();
    U32 id = fScope->NextArgInteger();

    // Create a new task using the type given
    Task *task = NewTask(subject, name, id);

    // Load this task
    ASSERT(task)
    task->Load(fScope);

    return (task);
  }