Implementation of the NewGRF class' functions. More...
#include "newgrf_class.h"
#include "table/strings.h"
Go to the source code of this file.
Defines | |
#define | DEFINE_NEWGRF_CLASS_METHOD(type) |
#define | INSTANTIATE_NEWGRF_CLASS_METHODS(name, Tspec, Tid, Tmax) |
Force instantiation of the methods so we don't get linker errors. | |
Functions | |
DEFINE_NEWGRF_CLASS_METHOD (void) | |
DEFINE_NEWGRF_CLASS_METHOD (Tid) | |
DEFINE_NEWGRF_CLASS_METHOD (StringID) | |
DEFINE_NEWGRF_CLASS_METHOD (uint) | |
DEFINE_NEWGRF_CLASS_METHOD (const Tspec *) |
Implementation of the NewGRF class' functions.
Definition in file newgrf_class_func.h.
#define DEFINE_NEWGRF_CLASS_METHOD | ( | type | ) |
template <typename Tspec, typename Tid, Tid Tmax> \ type NewGRFClass<Tspec, Tid, Tmax>
Definition at line 16 of file newgrf_class_func.h.
#define INSTANTIATE_NEWGRF_CLASS_METHODS | ( | name, | |||
Tspec, | |||||
Tid, | |||||
Tmax | ) |
template void name::Reset(); \ template Tid name::Allocate(uint32 global_id); \ template void name::SetName(Tid cls_id, StringID name); \ template void name::Assign(Tspec *spec); \ template StringID name::GetName(Tid cls_id); \ template uint name::GetCount(); \ template uint name::GetCount(Tid cls_id); \ template const Tspec *name::Get(Tid cls_id, uint index); \ template const Tspec *name::GetByGrf(uint32 grfid, byte localidx, int *index);
Force instantiation of the methods so we don't get linker errors.
Definition at line 121 of file newgrf_class_func.h.