internal void UpdateGhostItem(Furni furni) { if (ghostMeubi != null) { DisplayGhostItem(furni); } }
//TODO: Ghost furni depth internal void DisplayGhostItem(Furni furni) { try { GameScreenManager.Instance.GetInventoryManager().Close(); ghostMeubi = new GhostMeubi(_content, furni.GetItemId(), furni.GetSpriteId(), () => { ghostMeubi = null; GameScreenManager.Instance.GetInventoryManager().Open(); }, () => { RetroEnvironment.GetGame().GetClientManager().SendPacket(new PlaceObjectEvent(ghostMeubi.GetItemId(), floorDesign.GetMouseTile(roomOffset).GetCoordinate().X, floorDesign.GetMouseTile(roomOffset).GetCoordinate().Z, ghostMeubi.GetRotation())); }); placeDelay.Start(); } catch (Exception ex) { if (furni == null) { Logger.Error("Ghost Furni does not exist!"); } else if (roomOffset == null) { Logger.Error("Room offset does not exist!"); } else { Logger.Error(ex); } } }