59 lines
1.8 KiB
C#
59 lines
1.8 KiB
C#
|
using CustomNPCFramework.Framework.Enums;
|
|||
|
using Microsoft.Xna.Framework;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace CustomNPCFramework.Framework.Graphics
|
|||
|
{
|
|||
|
public class ExtendedAssetInfo :AssetInfo
|
|||
|
{
|
|||
|
public Genders gender;
|
|||
|
public List<Seasons> seasons;
|
|||
|
public PartType type;
|
|||
|
public AnimationType animationType;
|
|||
|
|
|||
|
public ExtendedAssetInfo()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Constructor.
|
|||
|
/// </summary>
|
|||
|
/// <param name="name"></param>
|
|||
|
/// <param name="assetSize"></param>
|
|||
|
/// <param name="randomizeOnLoad"></param>
|
|||
|
/// <param name="Gender">The type of gender this asset will be associated with.</param>
|
|||
|
/// <param name="Season">The type of season this asset will be associated with.</param>
|
|||
|
public ExtendedAssetInfo(string name,NamePairings pair,Vector2 assetSize, bool randomizeOnLoad, Genders Gender, List<Seasons> Season, PartType Type): base(name,pair, assetSize, randomizeOnLoad)
|
|||
|
{
|
|||
|
this.gender = Gender;
|
|||
|
this.seasons = Season;
|
|||
|
this.type = Type;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Save the json to a certain location.
|
|||
|
/// </summary>
|
|||
|
/// <param name="path"></param>
|
|||
|
public new void writeToJson(string path)
|
|||
|
{
|
|||
|
Class1.ModHelper.WriteJsonFile<ExtendedAssetInfo>(path, this);
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Read the json from a certain location.
|
|||
|
/// </summary>
|
|||
|
/// <param name="path"></param>
|
|||
|
/// <returns></returns>
|
|||
|
public new static ExtendedAssetInfo readFromJson(string path)
|
|||
|
{
|
|||
|
return Class1.ModHelper.ReadJsonFile<ExtendedAssetInfo>(path);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|