forked from tfarley/aclogview
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET 8 migrated to latest ACE libraries (#67)
* Initial .NET 8 support Still some more work to do * Remove unnecessary packages, maybe fix appveyor? * Form1 fix alignment of controls * CommandLine fix * Create appveyor.yml * Update appveyor.yml * Exception fix * Fix a bunch of build warnings * Migrate to latest ACE libraries * Add linux notes for player exporter import * PlayerExporter add missing continue * Latest ACE release libs --------- Co-authored-by: Ty Conner <[email protected]>
- Loading branch information
1 parent
23c78c7
commit 0777b47
Showing
14 changed files
with
540 additions
and
582 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
|
||
using ACE.Database.Models.Shard; | ||
|
||
namespace aclogview.ACE_Helpers | ||
{ | ||
static class ACECharacterCreator | ||
{ | ||
/// <summary> | ||
/// Do not call this twice for the same Character | ||
/// This should be the first message you parse when constructiong a player | ||
/// </summary> | ||
public static void Update(CM_Login.PlayerDescription message, Character character) | ||
{ | ||
character.CharacterOptions1 = (int)message.PlayerModule.options_; | ||
|
||
if (message.PlayerModule.shortcuts_ != null) | ||
{ | ||
foreach (var value in message.PlayerModule.shortcuts_.shortCuts_) | ||
character.CharacterPropertiesShortcutBar.Add(new CharacterPropertiesShortcutBar { ShortcutBarIndex = (uint)value.index_, ShortcutObjectId = value.objectID_ }); | ||
} | ||
|
||
for (uint i = 0; i < message.PlayerModule.favorite_spells_.Length; i++) | ||
{ | ||
if (message.PlayerModule.favorite_spells_[i] != null) | ||
{ | ||
for (uint j = 0; j < message.PlayerModule.favorite_spells_[i].list.Count; j++) | ||
character.CharacterPropertiesSpellBar.Add(new CharacterPropertiesSpellBar { SpellBarNumber = i, SpellBarIndex = j, SpellId = (uint)message.PlayerModule.favorite_spells_[i].list[(int)j] }); | ||
} | ||
} | ||
|
||
foreach (var value in message.PlayerModule.desired_comps_.hashTable) | ||
character.CharacterPropertiesFillCompBook.Add(new CharacterPropertiesFillCompBook { SpellComponentId = (int)value.Key, QuantityToRebuy = value.Value }); | ||
|
||
character.SpellbookFilters = message.PlayerModule.spell_filters_; | ||
|
||
character.CharacterOptions2 = (int)message.PlayerModule.options2; | ||
|
||
// This is just window placement. For now, we don't bother exporting it | ||
// TODO: message.PlayerModule.m_colGameplayOptions -> player.Character.GameplayOptions | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.