mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-26 21:35:10 +00:00
Rename ParentPart and OffsetPart to CMSBParentPart and CSMBOffsetPart
This commit is contained in:
@@ -40,13 +40,12 @@ namespace PckStudio.Classes.FileTypes
|
||||
{
|
||||
public List<CSMBPart> Parts = new List<CSMBPart>();
|
||||
public List<CSMBOffset> Offsets = new List<CSMBOffset>();
|
||||
|
||||
}
|
||||
|
||||
public class CSMBPart
|
||||
{
|
||||
public string Name = "Partname";
|
||||
public ParentPart Parent = 0;
|
||||
public CSMBParentPart Parent = 0;
|
||||
public float posX, posY, posZ = 0.0f;
|
||||
public float sizeX, sizeY, sizeZ = 0.0f;
|
||||
public int uvX, uvY = 0;
|
||||
@@ -55,11 +54,11 @@ namespace PckStudio.Classes.FileTypes
|
||||
}
|
||||
public class CSMBOffset
|
||||
{
|
||||
public OffsetPart offsetPart = 0;
|
||||
public CSMBOffsetPart offsetPart = 0;
|
||||
public float VerticalOffset = 0.0f;
|
||||
}
|
||||
|
||||
public enum OffsetPart
|
||||
public enum CSMBOffsetPart
|
||||
{
|
||||
HEAD = 0,
|
||||
BODY = 1,
|
||||
@@ -92,7 +91,7 @@ namespace PckStudio.Classes.FileTypes
|
||||
CHEST = 28
|
||||
}
|
||||
|
||||
public enum ParentPart
|
||||
public enum CSMBParentPart
|
||||
{
|
||||
HEAD = 0,
|
||||
BODY = 1,
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace PckStudio.Classes.IO.CSMB
|
||||
{
|
||||
CSMBPart part = new CSMBPart();
|
||||
part.Name = ReadString(stream);
|
||||
part.Parent = (ParentPart)ReadInt(stream);
|
||||
part.Parent = (CSMBParentPart)ReadInt(stream);
|
||||
part.posX = ReadFloat(stream);
|
||||
part.posY = ReadFloat(stream);
|
||||
part.posZ = ReadFloat(stream);
|
||||
@@ -41,7 +41,7 @@ namespace PckStudio.Classes.IO.CSMB
|
||||
for (int i = 0; i < NumOfOffsets; i++)
|
||||
{
|
||||
CSMBOffset offset = new CSMBOffset();
|
||||
offset.offsetPart = (OffsetPart)ReadInt(stream);
|
||||
offset.offsetPart = (CSMBOffsetPart)ReadInt(stream);
|
||||
offset.VerticalOffset = ReadFloat(stream);
|
||||
BinFile.Offsets.Add(offset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user