Exemple #1
0
 public TeleportManager(TeleporterPlugin plugin)
 {
     _plugin = plugin;
     try {
         InitDelegates(plugin.Interface);
         InitAddresses(plugin.Interface);
     } catch (Exception ex) {
         _plugin.LogError($"TeleportManager Init Error.\n{ex.Message}");
     }
 }
Exemple #2
0
 public MapLink(TeleporterPlugin plugin, XivChatType type, MapLinkPayload payload, string senderName, SeString message)
 {
     _plugin     = plugin;
     ChatType    = type;
     Location    = new Vector2(payload.XCoord, payload.YCoord);
     PlaceName   = payload.PlaceName;
     TerritoryId = payload.TerritoryType.RowId;
     SenderName  = senderName;
     Message     = message.TextValue;
     Data        = message.Encode();
     Aetheryte   = GetClosestAetheryte();
     Payload     = new MapLinkPayload(_plugin.Interface.Data, payload.TerritoryType.RowId, payload.Map.RowId, payload.RawX, payload.RawY);
 }