Add animation related classes

This commit is contained in:
Perfare
2018-04-06 23:57:36 +08:00
parent 4ab513002f
commit d5d937247e
36 changed files with 1974 additions and 166 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
class Animator
{
public PPtr m_GameObject;
public PPtr m_Avatar;
public PPtr m_Controller;
public Animator(AssetPreloadData preloadData)
{
var sourceFile = preloadData.sourceFile;
var reader = preloadData.InitReader();
reader.Position = preloadData.Offset;
m_GameObject = sourceFile.ReadPPtr();
var m_Enabled = reader.ReadByte();
reader.AlignStream(4);
m_Avatar = sourceFile.ReadPPtr();
m_Controller = sourceFile.ReadPPtr();
}
}
}