mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add paint function to entities
This commit is contained in:
parent
496fdfd3eb
commit
a9f76712b5
|
@ -106,3 +106,7 @@ void Balloon::Serialise(DataSerialiser& stream)
|
|||
stream << time_to_move;
|
||||
stream << colour;
|
||||
}
|
||||
|
||||
void Balloon::Paint() const
|
||||
{
|
||||
}
|
||||
|
|
|
@ -26,4 +26,5 @@ struct Balloon : EntityBase
|
|||
void Pop();
|
||||
void Press();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
};
|
||||
|
|
|
@ -362,3 +362,7 @@ void Duck::Serialise(DataSerialiser& stream)
|
|||
stream << target_y;
|
||||
stream << state;
|
||||
}
|
||||
|
||||
void Duck::Paint() const
|
||||
{
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ struct Duck : EntityBase
|
|||
bool IsFlying();
|
||||
void Remove();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
|
||||
private:
|
||||
void UpdateFlyToWater();
|
||||
|
|
|
@ -76,3 +76,9 @@ void EntityBase::Serialise(DataSerialiser& stream)
|
|||
stream << z;
|
||||
stream << sprite_direction;
|
||||
}
|
||||
|
||||
// Exists only for signature
|
||||
void EntityBase::Paint() const
|
||||
{
|
||||
Guard::Assert(false, "You are not supposed to call this");
|
||||
}
|
||||
|
|
|
@ -70,4 +70,6 @@ struct EntityBase
|
|||
}
|
||||
|
||||
void Serialise(class DataSerialiser& stream);
|
||||
|
||||
void Paint() const;
|
||||
};
|
||||
|
|
|
@ -392,3 +392,7 @@ void JumpingFountain::Serialise(DataSerialiser& stream)
|
|||
stream << TargetY;
|
||||
stream << Iteration;
|
||||
}
|
||||
|
||||
void JumpingFountain::Paint() const
|
||||
{
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ struct JumpingFountain : EntityBase
|
|||
void Update();
|
||||
static void StartAnimation(JumpingFountainType newType, const CoordsXY& newLoc, const TileElement* tileElement);
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
|
||||
private:
|
||||
JumpingFountainType GetType() const;
|
||||
|
|
|
@ -144,3 +144,7 @@ void Litter::Serialise(DataSerialiser& stream)
|
|||
stream << SubType;
|
||||
stream << creationTick;
|
||||
}
|
||||
|
||||
void Litter::Paint() const
|
||||
{
|
||||
}
|
||||
|
|
|
@ -41,4 +41,5 @@ struct Litter : EntityBase
|
|||
void Serialise(DataSerialiser& stream);
|
||||
rct_string_id GetName() const;
|
||||
uint32_t GetAge() const;
|
||||
void Paint() const;
|
||||
};
|
||||
|
|
|
@ -164,3 +164,7 @@ void MoneyEffect::Serialise(DataSerialiser& stream)
|
|||
stream << OffsetX;
|
||||
stream << Wiggle;
|
||||
}
|
||||
|
||||
void MoneyEffect::Paint() const
|
||||
{
|
||||
}
|
||||
|
|
|
@ -31,4 +31,5 @@ struct MoneyEffect : EntityBase
|
|||
void Update();
|
||||
std::pair<rct_string_id, money64> GetStringId() const;
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
};
|
||||
|
|
|
@ -144,6 +144,10 @@ void VehicleCrashParticle::Serialise(DataSerialiser& stream)
|
|||
stream << acceleration_z;
|
||||
}
|
||||
|
||||
void VehicleCrashParticle::Paint() const
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x00673699
|
||||
|
@ -181,6 +185,10 @@ void CrashSplashParticle::Serialise(DataSerialiser& stream)
|
|||
stream << frame;
|
||||
}
|
||||
|
||||
void CrashSplashParticle::Paint() const
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006734B2
|
||||
|
@ -231,6 +239,10 @@ void SteamParticle::Serialise(DataSerialiser& stream)
|
|||
stream << time_to_move;
|
||||
}
|
||||
|
||||
void SteamParticle::Paint() const
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x0067363D
|
||||
|
@ -268,6 +280,10 @@ void ExplosionCloud::Serialise(DataSerialiser& stream)
|
|||
stream << frame;
|
||||
}
|
||||
|
||||
void ExplosionCloud::Paint() const
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x0067366B
|
||||
|
@ -304,3 +320,7 @@ void ExplosionFlare::Serialise(DataSerialiser& stream)
|
|||
EntityBase::Serialise(stream);
|
||||
stream << frame;
|
||||
}
|
||||
|
||||
void ExplosionFlare::Paint() const
|
||||
{
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ struct VehicleCrashParticle : EntityBase
|
|||
static void Create(rct_vehicle_colour colours, const CoordsXYZ& vehiclePos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
};
|
||||
|
||||
struct CrashSplashParticle : EntityBase
|
||||
|
@ -40,6 +41,7 @@ struct CrashSplashParticle : EntityBase
|
|||
static void Create(const CoordsXYZ& splashPos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
};
|
||||
|
||||
struct ExplosionFlare : EntityBase
|
||||
|
@ -49,6 +51,7 @@ struct ExplosionFlare : EntityBase
|
|||
static void Create(const CoordsXYZ& flarePos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
};
|
||||
|
||||
struct ExplosionCloud : EntityBase
|
||||
|
@ -58,6 +61,7 @@ struct ExplosionCloud : EntityBase
|
|||
static void Create(const CoordsXYZ& cloudPos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
};
|
||||
|
||||
struct SteamParticle : EntityBase
|
||||
|
@ -69,4 +73,5 @@ struct SteamParticle : EntityBase
|
|||
static void Create(const CoordsXYZ& coords);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
};
|
||||
|
|
|
@ -2675,3 +2675,7 @@ void Peep::Serialise(DataSerialiser& stream)
|
|||
stream << WalkingFrameNum;
|
||||
stream << PeepFlags;
|
||||
}
|
||||
|
||||
void Peep::Paint() const
|
||||
{
|
||||
}
|
||||
|
|
|
@ -409,6 +409,7 @@ public: // Peep
|
|||
[[nodiscard]] CoordsXY GetDestination() const;
|
||||
|
||||
void Serialise(class DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
|
||||
// TODO: Make these private again when done refactoring
|
||||
public: // Peep
|
||||
|
|
Loading…
Reference in New Issue