cargopacket.cpp File Reference

Implementation of the cargo packets. More...

#include "stdafx.h"
#include "openttd.h"
#include "station.h"
#include "cargopacket.h"
#include "saveload.h"

Go to the source code of this file.

Functions

void InitializeCargoPackets ()
static void Save_CAPA ()
static void Load_CAPA ()

Variables

static const SaveLoad _cargopacket_desc []
const ChunkHandler _cargopacket_chunk_handlers []


Detailed Description

Implementation of the cargo packets.

Definition in file cargopacket.cpp.


Variable Documentation

const ChunkHandler _cargopacket_chunk_handlers[]

Initial value:

 {
  { 'CAPA', Save_CAPA, Load_CAPA, CH_ARRAY | CH_LAST},
}

const SaveLoad _cargopacket_desc[] [static]

Initial value:

 {
  SLE_VAR(CargoPacket, source,          SLE_UINT16),
  SLE_VAR(CargoPacket, source_xy,       SLE_UINT32),
  SLE_VAR(CargoPacket, loaded_at_xy,    SLE_UINT32),
  SLE_VAR(CargoPacket, count,           SLE_UINT16),
  SLE_VAR(CargoPacket, days_in_transit, SLE_UINT8),
  SLE_VAR(CargoPacket, feeder_share,    SLE_INT64),
  SLE_VAR(CargoPacket, paid_for,        SLE_BOOL),


}

Definition at line 45 of file cargopacket.cpp.


Generated on Wed Oct 1 17:03:26 2008 for openttd by  doxygen 1.5.6