order_sl.cpp File Reference

Code handling saving and loading of orders. More...

#include "../stdafx.h"
#include "../order_base.h"
#include "../settings_type.h"
#include "saveload.h"

Go to the source code of this file.

Functions

static Order UnpackVersion4Order (uint16 packed)
 Unpacks a order from savegames with version 4 and lower.
Order UnpackOldOrder (uint16 packed)
 Unpacks a order from savegames made with TTD(Patch).
const SaveLoadGetOrderDescription ()
static void Save_ORDR ()
static void Load_ORDR ()
static void Ptrs_ORDR ()
const SaveLoadGetOrderListDescription ()
static void Save_ORDL ()
static void Load_ORDL ()
static void Ptrs_ORDL ()

Variables

const ChunkHandler _order_chunk_handlers []


Detailed Description

Code handling saving and loading of orders.

Definition in file order_sl.cpp.


Function Documentation

Order UnpackOldOrder ( uint16  packed  ) 

Unpacks a order from savegames made with TTD(Patch).

Parameters:
packed packed order
Returns:
unpacked order

Definition at line 82 of file order_sl.cpp.

References UnpackVersion4Order().

static Order UnpackVersion4Order ( uint16  packed  )  [static]

Unpacks a order from savegames with version 4 and lower.

Parameters:
packed packed order
Returns:
unpacked order

Definition at line 73 of file order_sl.cpp.

References GB().

Referenced by UnpackOldOrder().


Variable Documentation

const ChunkHandler _order_chunk_handlers[]

Initial value:

 {
  { 'ORDR', Save_ORDR, Load_ORDR, Ptrs_ORDR, CH_ARRAY},
  { 'ORDL', Save_ORDL, Load_ORDL, Ptrs_ORDL, CH_ARRAY | CH_LAST},
}


Generated on Wed Dec 30 20:40:15 2009 for OpenTTD by  doxygen 1.5.6