Skip to content

Commit

Permalink
Updated to dalamud 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrogo7 committed Nov 22, 2024
1 parent 934fde7 commit 54f5f42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 39 deletions.
5 changes: 3 additions & 2 deletions PlayerCoords/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ public class Player
public float x { get; set; } = 0;
public float y { get; set; } = 0;
public float z { get; set; } = 0;
public string WorldName => Plugin.DataManager.GetExcelSheet<Lumina.Excel.GeneratedSheets.World>()?.GetRow(homeWorld)?.Name?.RawString ?? $"World_{homeWorld}";
public string WorldName { get; set; } = "";

public Player() {}

public static Player fromCharacter(IPlayerCharacter character) {
Player player = new Player();
player.Name = character.Name.TextValue;
player.homeWorld = character.HomeWorld.Id;
player.homeWorld = character.HomeWorld.RowId;
player.WorldName = character.HomeWorld.Value.Name.ToString();
player.ObjectId = character.GameObjectId;
player.x = character.Position.X;
player.y = character.Position.Y;
Expand Down
2 changes: 1 addition & 1 deletion PlayerCoords/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void Dispose()
ImPlot.DestroyContext();
}

private void OnLogout()
private void OnLogout(int type, int code)
{
stopTimers();
}
Expand Down
39 changes: 3 additions & 36 deletions PlayerCoords/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,15 @@
"net8.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[2.1.13, )",
"resolved": "2.1.13",
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
"requested": "[11.0.0, )",
"resolved": "11.0.0",
"contentHash": "bjT7XUlhIJSmsE/O76b7weUX+evvGQctbQB8aKXt94o+oPWxHpCepxAGMs7Thow3AzCyqWs7cOpp9/2wcgRRQA=="
},
"JsonPoke.MSBuild": {
"type": "Direct",
"requested": "[1.0.9, )",
"resolved": "1.0.9",
"contentHash": "0C2NW2nWDBCMuDGqKqBeLIu8ijcJp4/RkWZ50m6MdiU5yahtIaajyeMvUNmPrv+EdEZ780vvkLnvKEsGNhr/mg=="
},
"Microsoft.NETCore.Platforms": {
"type": "Transitive",
"resolved": "3.1.0",
"contentHash": "z7aeg8oHln2CuNulfhiLYxCVMPEwBl3rzicjvIX+4sUuCwvXw5oXQEtbiU2c0z4qYL5L3Kmx0mMA/+t/SbY67w=="
},
"Microsoft.Win32.Registry": {
"type": "Transitive",
"resolved": "4.7.0",
"contentHash": "KSrRMb5vNi0CWSGG1++id2ZOs/1QhRqROt+qgbEAdQuGjGrFcl4AOl4/exGPUYz2wUnU42nvJqon1T3U0kPXLA==",
"dependencies": {
"System.Security.AccessControl": "4.7.0",
"System.Security.Principal.Windows": "4.7.0"
}
},
"System.Resources.Extensions": {
"type": "Transitive",
"resolved": "4.7.0",
"contentHash": "Efd5jls31pR1MkEl/IlT/lOzG0nGRCoYnHctZTq597+absekOXaP53yUlv5U4DfcfImSAAupWVpTW1tE54lF7A=="
},
"System.Security.AccessControl": {
"type": "Transitive",
"resolved": "4.7.0",
"contentHash": "JECvTt5aFF3WT3gHpfofL2MNNP6v84sxtXxpqhLBCcDRzqsPBmHhQ6shv4DwwN2tRlzsUxtb3G9M3763rbXKDg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.0",
"System.Security.Principal.Windows": "4.7.0"
}
},
"System.Security.Principal.Windows": {
"type": "Transitive",
"resolved": "4.7.0",
"contentHash": "ojD0PX0XhneCsUbAZVKdb7h/70vyYMDYs85lwEI+LngEONe/17A0cFaRFqZU+sOEidcVswYWikYOQ9PPfjlbtQ=="
}
}
}
Expand Down

0 comments on commit 54f5f42

Please sign in to comment.