Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Opened 19 years ago

Closed 18 years ago

Last modified 17 years ago

#131 closed task (fixed)

ResourceFile Class

Reported by: bensch Owned by: bensch
Priority: minor Milestone: Old Orxonox tickets orx-v0
Component: Importer Version:
Keywords: Cc:
Referenced By: References:

Description

FILE

The ResourceManager is really nice, but the entire interface could use some update…

IDEA

The best thing to handle static loaded data to interface it with a file: A File is a Resource loaded from a Disk (or any other medium) and reference it within the Game whenever a new file is loaded, it is first checked, if the File has already been loaded (what the ResourceManager does). Why to implement this, is that the ResourceManager must not anymore have many special cases within itself, but that it can outsource special behaviour into the many different formats that can be loaded.

Also to Make a Copy of a Resource, and change ONLY the copy is impossible with the ResourceManager, one could not even load a file a second time….

Implementation

  • these will become a File (isA File)
    • SoundBuffer
    • ObjModel
    • MD2Model
    • Music
    • Textures …
  • Resources will become Files
  • The ResourceManager will search through File and not through internal lists.

Change History (5)

comment:1 Changed 19 years ago by patrick

You can also name it a Resource, what probably comes a little closer to the real beheviour. But this isn't actualy important.

comment:2 Changed 18 years ago by bensch

  • Summary changed from File Class to ResourceFile Class

comment:3 Changed 18 years ago by bensch

  • Status changed from new to assigned
  • Type changed from defect to task

Reimplemented over the Resource/ResourceManager approach

Texture example:

Texture → ResourceTexture ← Resource

Texture, what to load Resource where to find it, and Storage of the Object

comment:4 Changed 18 years ago by bensch

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed, and back in the trunk

comment:5 Changed 17 years ago by bknecht

  • Milestone changed from Features to Old Orxonox tickets

Milestone Features deleted

Note: See TracTickets for help on using tickets.