Ejemplo n.º 1
0
    public void SendAnchorToGame(PosRotAnchor pra)
    {
        var offset = PointerSolver.FollowMainPointer(CurrentConnection, OffsetHelper.PlayerCoordJumps, beriBase);

        CurrentConnection.WriteBytes(pra.Anchor1, offset, NHSE.Injection.RWMethod.Absolute);
        CurrentConnection.WriteBytes(pra.Anchor2, offset + 0x3A, NHSE.Injection.RWMethod.Absolute);
    }
Ejemplo n.º 2
0
 public void DeleteAnchor(PosRotAnchor pra)
 {
     UI_Popup.CurrentInstance.CreatePopupChoice($"Really delete anchor {pra.Name}? This action cannot be reversed.", "No", () => { }, null,
                                                "Yes, delete it", () => { teleports.Remove(pra); saveAnchors(); loadAnchors(); });
 }