-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for more 0x0E FileTypes (#14)
- Loading branch information
Showing
26 changed files
with
930 additions
and
87 deletions.
There are no files selected for viewing
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
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,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ACViewer.Entity | ||
{ | ||
public class ChatEmoteData | ||
{ | ||
public ACE.DatLoader.Entity.ChatEmoteData _chatEmoteData; | ||
|
||
public ChatEmoteData(ACE.DatLoader.Entity.ChatEmoteData chatEmoteData) | ||
{ | ||
_chatEmoteData = chatEmoteData; | ||
} | ||
|
||
public List<TreeNode> BuildTree() | ||
{ | ||
var treeNode = new List<TreeNode>(); | ||
|
||
treeNode.Add(new TreeNode($"MyEmote: {_chatEmoteData.MyEmote}")); | ||
treeNode.Add(new TreeNode($"OtherEmote: {_chatEmoteData.OtherEmote}")); | ||
|
||
return treeNode; | ||
} | ||
} | ||
} |
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,52 @@ | ||
using ACE.Entity.Enum; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ACViewer.Entity | ||
{ | ||
public class Contract | ||
{ | ||
public ACE.DatLoader.Entity.Contract _contract; | ||
|
||
public Contract(ACE.DatLoader.Entity.Contract contract) | ||
{ | ||
_contract = contract; | ||
} | ||
|
||
public List<TreeNode> BuildTree() | ||
{ | ||
var treeNode = new List<TreeNode>(); | ||
|
||
treeNode.Add(new TreeNode($"ContractId: {_contract.ContractId}")); | ||
treeNode.Add(new TreeNode($"ContractName: {_contract.ContractName}")); | ||
treeNode.Add(new TreeNode($"Version: {_contract.Version}")); | ||
treeNode.Add(new TreeNode($"Description: {_contract.Description}")); | ||
treeNode.Add(new TreeNode($"DescriptionProgress: {_contract.DescriptionProgress}")); | ||
treeNode.Add(new TreeNode($"NameNPCStart: {_contract.NameNPCStart}")); | ||
treeNode.Add(new TreeNode($"NameNPCEnd: {_contract.NameNPCEnd}")); | ||
treeNode.Add(new TreeNode($"QuestflagStamped: {_contract.QuestflagStamped}")); | ||
treeNode.Add(new TreeNode($"QuestflagStarted: {_contract.QuestflagStarted}")); | ||
treeNode.Add(new TreeNode($"QuestflagFinished: {_contract.QuestflagFinished}")); | ||
treeNode.Add(new TreeNode($"QuestflagProgress: {_contract.QuestflagProgress}")); | ||
treeNode.Add(new TreeNode($"QuestflagTimer: {_contract.QuestflagTimer}")); | ||
treeNode.Add(new TreeNode($"QuestflagRepeatTime: {_contract.QuestflagRepeatTime}")); | ||
|
||
var locationNPCStart = new TreeNode($"LocationNPCStart"); | ||
locationNPCStart.Items = new Position(_contract.LocationNPCStart).BuildTree(); | ||
treeNode.Add(locationNPCStart); | ||
|
||
var locationNPCEnd = new TreeNode($"LocationNPCEnd"); | ||
locationNPCEnd.Items = new Position(_contract.LocationNPCEnd).BuildTree(); | ||
treeNode.Add(locationNPCEnd); | ||
|
||
var locationQuestArea = new TreeNode($"LocationQuestArea"); | ||
locationQuestArea.Items = new Position(_contract.LocationQuestArea).BuildTree(); | ||
treeNode.Add(locationQuestArea); | ||
|
||
return treeNode; | ||
} | ||
} | ||
} |
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,48 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using ACE.Entity.Enum; | ||
|
||
namespace ACViewer.Entity | ||
{ | ||
public class Generator | ||
{ | ||
public ACE.DatLoader.Entity.Generator _generator; | ||
|
||
public Generator(ACE.DatLoader.Entity.Generator generator) | ||
{ | ||
_generator = generator; | ||
} | ||
|
||
public List<TreeNode> BuildTree() | ||
{ | ||
var treeNode = new List<TreeNode>(); | ||
|
||
/*if (_generator.Id != 0) | ||
treeNode.Add(new TreeNode($"Id: {_generator.Id}")); | ||
if (!string.IsNullOrEmpty(_generator.Name)) | ||
treeNode.Add(new TreeNode($"Name: {_generator.Name}"));*/ | ||
|
||
if (_generator.Items.Count > 0) | ||
{ | ||
//var items = new TreeNode($"Items"); | ||
|
||
foreach (var item in _generator.Items) | ||
{ | ||
var heading = item.Id != 0 ? $"{item.Id} - {item.Name}" : item.Name; | ||
|
||
var subGenerator = new TreeNode(heading); | ||
subGenerator.Items = new Generator(item).BuildTree(); | ||
|
||
//items.Items.Add(subGenerator); | ||
treeNode.Add(subGenerator); | ||
} | ||
//treeNode.Add(items); | ||
} | ||
return treeNode; | ||
} | ||
} | ||
} |
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,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ACViewer.Entity | ||
{ | ||
public class NameFilterLanguageData | ||
{ | ||
public ACE.DatLoader.Entity.NameFilterLanguageData _nameFilterLanguageData; | ||
|
||
public NameFilterLanguageData(ACE.DatLoader.Entity.NameFilterLanguageData nameFilterLanguageData) | ||
{ | ||
_nameFilterLanguageData = nameFilterLanguageData; | ||
} | ||
|
||
public List<TreeNode> BuildTree() | ||
{ | ||
var treeNode = new List<TreeNode>(); | ||
|
||
treeNode.Add(new TreeNode($"MaximumVowelsInARow: {_nameFilterLanguageData.MaximumVowelsInARow}")); | ||
treeNode.Add(new TreeNode($"FirstNCharactersMustHaveAVowel: {_nameFilterLanguageData.FirstNCharactersMustHaveAVowel}")); | ||
treeNode.Add(new TreeNode($"VowelContainingSubstringLength: {_nameFilterLanguageData.VowelContainingSubstringLength}")); | ||
treeNode.Add(new TreeNode($"ExtraAllowedCharacters: {_nameFilterLanguageData.ExtraAllowedCharacters}")); | ||
treeNode.Add(new TreeNode($"Unknown: {_nameFilterLanguageData.Unknown}")); | ||
|
||
var compoundLetterGroups = new TreeNode($"CompoundLetterGrounds"); | ||
|
||
foreach (var compoundLetterGroup in _nameFilterLanguageData.CompoundLetterGroups) | ||
compoundLetterGroups.Items.Add(new TreeNode(compoundLetterGroup)); | ||
|
||
treeNode.Add(compoundLetterGroups); | ||
|
||
return treeNode; | ||
} | ||
} | ||
} |
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,50 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ACViewer.Entity | ||
{ | ||
public class SkillBase | ||
{ | ||
public enum SkillCategory | ||
{ | ||
Undef = 0, | ||
Combat = 1, | ||
Other = 2, | ||
Magic = 3 | ||
}; | ||
|
||
public ACE.DatLoader.Entity.SkillBase _skillBase; | ||
|
||
public SkillBase(ACE.DatLoader.Entity.SkillBase skillBase) | ||
{ | ||
_skillBase = skillBase; | ||
} | ||
|
||
public List<TreeNode> BuildTree() | ||
{ | ||
var treeNode = new List<TreeNode>(); | ||
|
||
treeNode.Add(new TreeNode($"Name: {_skillBase.Name}")); | ||
treeNode.Add(new TreeNode($"Description: {_skillBase.Description}")); | ||
treeNode.Add(new TreeNode($"IconId: 0x{_skillBase.IconId:X8}")); | ||
treeNode.Add(new TreeNode($"TrainedCost: {_skillBase.TrainedCost}")); | ||
treeNode.Add(new TreeNode($"SpecializedCost: {_skillBase.SpecializedCost}")); | ||
treeNode.Add(new TreeNode($"Category: {(SkillCategory)_skillBase.Category}")); | ||
treeNode.Add(new TreeNode($"CharGenUse: {_skillBase.ChargenUse}")); | ||
treeNode.Add(new TreeNode($"MinLevel: {_skillBase.MinLevel}")); | ||
|
||
var skillFormula = new TreeNode($"SkillFormula"); | ||
skillFormula.Items = new SkillFormula(_skillBase.Formula).BuildTree(); | ||
treeNode.Add(skillFormula); | ||
|
||
treeNode.Add(new TreeNode($"UpperBound: {_skillBase.UpperBound}")); | ||
treeNode.Add(new TreeNode($"LowerBound: {_skillBase.LowerBound}")); | ||
treeNode.Add(new TreeNode($"LearnMod: {_skillBase.LearnMod}")); | ||
|
||
return treeNode; | ||
} | ||
} | ||
} |
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,33 @@ | ||
using ACE.Entity.Enum.Properties; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ACViewer.Entity | ||
{ | ||
public class SkillFormula | ||
{ | ||
public ACE.DatLoader.Entity.SkillFormula _skillFormula; | ||
|
||
public SkillFormula(ACE.DatLoader.Entity.SkillFormula skillFormula) | ||
{ | ||
_skillFormula = skillFormula; | ||
} | ||
|
||
public List<TreeNode> BuildTree() | ||
{ | ||
var treeNode = new List<TreeNode>(); | ||
|
||
treeNode.Add(new TreeNode($"Attr1: {(PropertyAttribute)_skillFormula.Attr1}")); | ||
treeNode.Add(new TreeNode($"Attr2: {(PropertyAttribute)_skillFormula.Attr2}")); | ||
treeNode.Add(new TreeNode($"W: {_skillFormula.W}")); | ||
treeNode.Add(new TreeNode($"X: {_skillFormula.X}")); | ||
treeNode.Add(new TreeNode($"Y: {_skillFormula.Y}")); | ||
treeNode.Add(new TreeNode($"Z (divisor): {_skillFormula.Z}")); | ||
|
||
return treeNode; | ||
} | ||
} | ||
} |
Oops, something went wrong.