equal
deleted
inserted
replaced
26 }; |
26 }; |
27 |
27 |
28 class OverrideManagerBase { |
28 class OverrideManagerBase { |
29 protected: |
29 protected: |
30 uint16 *entity_overrides; |
30 uint16 *entity_overrides; |
|
31 uint32 *grfid_overrides; |
31 |
32 |
32 uint16 max_offset; ///< what is the length of the original entity's array of specs |
33 uint16 max_offset; ///< what is the length of the original entity's array of specs |
33 uint16 max_new_entities; ///< what is the amount of entities, old and new summed |
34 uint16 max_new_entities; ///< what is the amount of entities, old and new summed |
34 |
35 |
35 uint16 invalid_ID; ///< ID used to dected invalid entities; |
36 uint16 invalid_ID; ///< ID used to dected invalid entities; |
42 virtual ~OverrideManagerBase(); |
43 virtual ~OverrideManagerBase(); |
43 |
44 |
44 void ResetOverride(); |
45 void ResetOverride(); |
45 void ResetMapping(); |
46 void ResetMapping(); |
46 |
47 |
47 void Add(uint8 local_id, uint entity_type); |
48 void Add(uint8 local_id, uint32 grfid, uint entity_type); |
48 virtual uint16 AddEntityID(byte grf_local_id, uint32 grfid, byte substitute_id); |
49 virtual uint16 AddEntityID(byte grf_local_id, uint32 grfid, byte substitute_id); |
49 |
50 |
50 uint16 GetSubstituteID(byte entity_id); |
51 uint16 GetSubstituteID(byte entity_id); |
51 uint16 GetID(uint8 grf_local_id, uint32 grfid); |
52 uint16 GetID(uint8 grf_local_id, uint32 grfid); |
52 |
53 |