unhacking Player and World actors
This commit is contained in:
@@ -3,16 +3,13 @@ using OpenRa.Game.Graphics;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
// this is NOT bound through rules (it belongs on the world actor!)
|
||||
// so no *Info required
|
||||
class ChronoshiftPaletteEffectInfo : StatelessTraitInfo<ChronoshiftPaletteEffect> { }
|
||||
|
||||
class ChronoshiftPaletteEffect : IPaletteModifier, ITick
|
||||
{
|
||||
const int chronoEffectLength = 20;
|
||||
int remainingFrames;
|
||||
|
||||
public ChronoshiftPaletteEffect(Actor self) { }
|
||||
|
||||
public void DoChronoshift()
|
||||
{
|
||||
remainingFrames = chronoEffectLength;
|
||||
|
||||
@@ -2,13 +2,10 @@
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
// this is NOT bound through rules (it belongs on the world actor!)
|
||||
// so no *Info required
|
||||
class WaterPaletteRotationInfo : StatelessTraitInfo<WaterPaletteRotation> { }
|
||||
|
||||
class WaterPaletteRotation : ITick, IPaletteModifier
|
||||
{
|
||||
public WaterPaletteRotation(Actor self) { }
|
||||
|
||||
float t = 0;
|
||||
public void Tick(Actor self)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user