CrystalSpace

Public API Reference

csLoadResult Struct Reference
[Loading & Saving support]

Return structure for the iLoader->Load() routines. More...

#include <imap/loader.h>

List of all members.

Public Attributes

iBaseresult
 The object that was loaded.
bool success
 True if loading was succesful.

Detailed Description

Return structure for the iLoader->Load() routines.

Definition at line 128 of file loader.h.


Member Data Documentation

The object that was loaded.

Depending on the file you load this can be anything like:

  • 'world' file: in that case 'result' will be set to the engine.
  • 'library' file: 'result' will be 0.
  • 'meshfact' file: 'result' will be the mesh factory wrapper.
  • 'meshobj' file: 'result' will be the mesh wrapper.
  • 'meshref' file: 'result' will be the mesh wrapper.
  • 'portals' file: 'result' will be the portal's mesh wrapper.
  • 'light' file: 'result' will be the light. Note! In case of a light call DecRef() after you added it to a sector. Note! Use scfQueryInterface on 'result' to detect what type was loaded.

Definition at line 145 of file loader.h.

True if loading was succesful.

Definition at line 131 of file loader.h.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 1.4.1 by doxygen 1.7.1