Worms4Editor/LibW4M/Data/X/ResourceDetail.cs

39 lines
895 B
C#
Raw Normal View History

2023-02-16 04:12:22 +00:00
using LibXom.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LibW4M.Data.X
{
public abstract class ResourceDetail<T> : SaveDataEntry
{
public T Value;
public XomString Name;
public int Flags;
public override string FriendlyName
{
get
{
return this.Name.Value;
}
}
2023-04-01 12:57:34 +00:00
public ResourceDetail(W4SaveFile fileBelongs, XomContainer mainContainer, bool load=true) : base(fileBelongs, mainContainer, load)
2023-02-16 04:12:22 +00:00
{
}
2023-04-01 12:57:34 +00:00
internal override void loadDefaults()
{
this.Name = this.fileBelongs.LookupString("Untitled Variable");
this.Flags = 96;
}
2023-02-16 04:12:22 +00:00
public abstract override void Load();
public abstract override void Save();
}
}