Public Member Functions | |
ObjectOverrideManager (uint16 offset, uint16 maximum, uint16 invalid) | |
void | SetEntitySpec (ObjectSpec *spec) |
Method to install the new object data in its proper slot The slot assigment is internal of this method, since it requires checking what is available. | |
Protected Member Functions | |
virtual bool | CheckValidNewID (uint16 testid) |
Definition at line 129 of file newgrf_commons.h.
void ObjectOverrideManager::SetEntitySpec | ( | ObjectSpec * | spec | ) |
Method to install the new object data in its proper slot The slot assigment is internal of this method, since it requires checking what is available.
spec | ObjectSpec that comes from the grf decoding process |
Definition at line 297 of file newgrf_commons.cpp.
References _object_specs, OverrideManagerBase::AddEntityID(), OverrideManagerBase::GetID(), ObjectSpec::grf_prop, GRFFilePropsBase< Tcnt >::grffile, grfmsg(), OverrideManagerBase::invalid_ID, GRFFilePropsBase< Tcnt >::local_id, NUM_OBJECTS, and OBJECT_TRANSMITTER.
Referenced by FinaliseObjectsArray().