🚧 Implement actions as objects
This commit is contained in:
+9
-2
@@ -82,8 +82,9 @@ type
|
||||
|
||||
{ TInsertStaticPacket }
|
||||
|
||||
TInsertStaticPacket = class(TPacket)
|
||||
constructor Create(AX, AY: Word; AZ: ShortInt; ATileID: Word; AHue: Word);
|
||||
TInsertStaticPacket = class(TStaticPacket)
|
||||
constructor Create(AX, AY: Word; AZ: ShortInt; ATileID: Word; AHue: Word); overload;
|
||||
constructor Create(AStaticItem: TStaticItem); overload;
|
||||
end;
|
||||
|
||||
{ TDeleteStaticPacket }
|
||||
@@ -250,6 +251,12 @@ begin
|
||||
FStream.WriteWord(AHue);
|
||||
end;
|
||||
|
||||
constructor TInsertStaticPacket.Create(AStaticItem: TStaticItem);
|
||||
begin
|
||||
inherited Create($07, 10);
|
||||
WriteStaticItem(AStaticItem);
|
||||
end;
|
||||
|
||||
{ TDeleteStaticPacket }
|
||||
|
||||
constructor TDeleteStaticPacket.Create(AStaticItem: TStaticItem);
|
||||
|
||||
Reference in New Issue
Block a user