| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using Client.MirGraphics;
- using Client.MirScenes;
- using S = ServerPackets;
- namespace Client.MirObjects
- {
- public class DecoObject : MapObject
- {
- public override ObjectType Race
- {
- get { return ObjectType.Deco; }
- }
- public override bool Blocking
- {
- get { return false; }
- }
- public int Image;
- public DecoObject(uint objectID)
- : base(objectID)
- {
- }
- public void Load(S.ObjectDeco info)
- {
- CurrentLocation = info.Location;
- MapLocation = info.Location;
- GameScene.Scene.MapControl.AddObject(this);
- Image = info.Image;
- BodyLibrary = Libraries.Deco;
- }
- public override void Process()
- {
- DrawLocation = new Point((CurrentLocation.X - User.Movement.X + MapControl.OffSetX) * MapControl.CellWidth, (CurrentLocation.Y - User.Movement.Y + MapControl.OffSetY) * MapControl.CellHeight);
- DrawLocation.Offset(GlobalDisplayLocationOffset);
- DrawLocation.Offset(User.OffSetMove);
- }
- public override void Draw()
- {
- BodyLibrary.Draw(Image, DrawLocation, DrawColour, true);
- }
- public override bool MouseOver(Point p)
- {
- return false;
- }
- public override void DrawBehindEffects(bool effectsEnabled)
- {
- }
- public override void DrawEffects(bool effectsEnabled)
- {
- }
- }
- }
|