mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 15:37:39 +02:00
bread2unity BCCAD interpreter setup
This commit is contained in:
24
Assets/Editor/bread2unity/Model/IAnimation.cs
Normal file
24
Assets/Editor/bread2unity/Model/IAnimation.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bread2Unity
|
||||
{
|
||||
public class IAnimation
|
||||
{
|
||||
public List<IAnimationStep> steps;
|
||||
}
|
||||
|
||||
public class IAnimationStep
|
||||
{
|
||||
public ushort spriteIndex;
|
||||
public ushort delay;
|
||||
|
||||
public float stretchX;
|
||||
public float stretchY;
|
||||
|
||||
public float rotation;
|
||||
|
||||
public byte opacity;
|
||||
}
|
||||
}
|
11
Assets/Editor/bread2unity/Model/IAnimation.cs.meta
Normal file
11
Assets/Editor/bread2unity/Model/IAnimation.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c33bcfd692627dd4a97ac1cd1d930420
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
13
Assets/Editor/bread2unity/Model/IDataModel.cs
Normal file
13
Assets/Editor/bread2unity/Model/IDataModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Bread2Unity
|
||||
{
|
||||
public class IDataModel
|
||||
{
|
||||
public List<ISprite> sprites = new List<ISprite>();
|
||||
public List<IAnimation> animations = new List<IAnimation>();
|
||||
public int sheetW;
|
||||
public int sheetH;
|
||||
}
|
||||
}
|
11
Assets/Editor/bread2unity/Model/IDataModel.cs.meta
Normal file
11
Assets/Editor/bread2unity/Model/IDataModel.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ddf1fd563dabc6040a863537a081843a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
31
Assets/Editor/bread2unity/Model/ISprite.cs
Normal file
31
Assets/Editor/bread2unity/Model/ISprite.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Bread2Unity
|
||||
{
|
||||
public class ISprite
|
||||
{
|
||||
public List<ISpritePart> parts = new List<ISpritePart>();
|
||||
}
|
||||
|
||||
public class ISpritePart
|
||||
{
|
||||
public ushort regionX;
|
||||
public ushort regionY;
|
||||
public ushort regionW;
|
||||
public ushort regionH;
|
||||
|
||||
public short posX;
|
||||
public short posY;
|
||||
|
||||
public float stretchX;
|
||||
public float stretchY;
|
||||
|
||||
public float rotation;
|
||||
|
||||
public bool flipX;
|
||||
public bool flipY;
|
||||
|
||||
public byte opacity;
|
||||
}
|
||||
}
|
11
Assets/Editor/bread2unity/Model/ISprite.cs.meta
Normal file
11
Assets/Editor/bread2unity/Model/ISprite.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d4aae79bea7b7234f9ce059ade5fce08
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user