public AnimationBundleWrapper(DATA_Parser.FileEntry file, DATA_Parser dataParser, Dictionary <uint, DATA_Parser.FileEntry> animationFiles) { Label = file.Hash.ToString(); Tag = file.ChunkEntry.Data; File = file; Version = dataParser.Version; using (var reader = new FileReader(file.ChunkEntry.Data, true)) { uint numAnimations = reader.ReadUInt32(); reader.ReadUInt32(); for (int i = 0; i < numAnimations; i++) { reader.ReadUInt32(); uint hash = reader.ReadUInt32(); if (animationFiles.ContainsKey(hash)) { var fileNode = new AnimationWrapper(animationFiles[hash], dataParser); AddChild(fileNode); } } } }
public ModelWrapper(DATA_Parser.FileEntry file, DATA_Parser dataParser) { Label = file.Hash.ToString(); ImageKey = "Model"; File = file; DataParser = dataParser; }
public SkeletonWrapper(DATA_Parser.FileEntry file, DATA_Parser dataParser) { Label = file.Hash.ToString(); ImageKey = "Bone"; File = file; DataParser = dataParser; }
public ScriptWrapper(DATA_Parser.FileEntry file, DATA_Parser dataParser) { Label = Hashing.CreateHashString(file.Hash); File = file; Version = dataParser.Version; OnClick(); }
public AnimationWrapper(DATA_Parser.FileEntry file, DATA_Parser dataParser) { Label = file.Hash.ToString(); File = file; Version = dataParser.Version; AddChild(new ObjectTreeNode("RAW DATA") { Tag = file.ChunkEntry.Data }); }
public TextureWrapper(DATA_Parser.FileEntry file, DATA_Parser dataParser) { Label = Hashing.CreateHashString(file.Hash); ImageKey = "Texture"; File = file; Version = dataParser.Version; try { OnClick(); } catch { } }