public void SetCharacterImage(int charId, string image) { if (PartyCharacterIds.Contains(charId)) { var index = _partyCharacterIds.FindIndex(i => i == charId); SetString(0x0e + index * 4, image, 4); // 0xfd - 0xef = 0x0e, 4 = length of the image string } }
public string GetCharacterImage(int charId) { if (PartyCharacterIds.Contains(charId)) { var index = _partyCharacterIds.FindIndex(i => i == charId); return(GetString(0x0e + index * 4, 4)); // 0xfd - 0xef = 0x0e, 4 = length of the image string } return(string.Empty); }