add PMX Writer

This commit is contained in:
CroakFang
2023-07-09 03:57:17 +08:00
parent 30a6e8d5f7
commit c595c06b78
14 changed files with 845 additions and 154 deletions
@@ -1,4 +1,7 @@
using System;
using LibMMD.Material;
using System;
using System.Collections.Generic;
using static LibMMD.Reader.PMXReader;
namespace LibMMD.Model
{
@@ -17,6 +20,10 @@ namespace LibMMD.Model
public MMDRigidBody[] Rigidbodies { get; set; }
public MMDJoint[] Joints { get; set; }
public PmxConfig PmxConfig;
public List<MMDTexture> TextureList = new List<MMDTexture>();
public List<PMXEntryItem> Entrys = new List<PMXEntryItem>();
public void Normalize()
{
foreach (var vertex in Vertices)
@@ -80,4 +87,19 @@ namespace LibMMD.Model
}
}
}
public class PMXEntryItem
{
public string EntryItemName;
public string EntryItemNameEn;
public bool IsSpecial;
public List<Element> Elements;
public class Element
{
public bool IsMorph;
public int MorphIndex;
public int BoneIndex;
}
}
}