mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Switch to System.Text.Json Removed Newtonsoft.Json and DouglasCrockford.JsMin * Update GameConfiguration.cs * Update MasterConfiguration.cs * Update ThreadConfiguration.cs * Update StarterSpell.cs * Update StarterGearFactory.cs * Update Program_Setup.cs * Update LifestonedConverter.cs * Update Program_Setup.cs * Update Program_Setup.cs * Update ACE.Adaptor Shift JSON weenie [de]serialization to System.Text.Json * Update LifestonedConverter.cs * Update StarterGearFactory.cs * Update ACE.Server.csproj * Update ACE.Server.Tests.csproj * Update Program.cs * Update MySqlConfiguration.cs * Update DDDConfiguration.cs * Update ModContainer.cs * Update ModManager.cs * Update ModMetadata.cs * Update ModMetadata.cs
77 lines
1.8 KiB
C#
77 lines
1.8 KiB
C#
using Lifestoned.DataModel.Shared;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace ACE.Adapter.GDLE.Models
|
|
{
|
|
public class GeneratorTable
|
|
{
|
|
[JsonPropertyName("delay")]
|
|
public float Delay { get; set; }
|
|
|
|
[JsonPropertyName("frame")]
|
|
public Frame Frame { get; set; } = new Frame();
|
|
|
|
|
|
[JsonPropertyName("initCreate")]
|
|
public uint InitCreate { get; set; }
|
|
|
|
[JsonPropertyName("maxNum")]
|
|
public uint MaxNumber { get; set; }
|
|
|
|
[JsonPropertyName("objcell_id")]
|
|
public uint ObjectCell { get; set; }
|
|
|
|
[JsonPropertyName("probability")]
|
|
public double Probability { get; set; }
|
|
|
|
[JsonPropertyName("ptid")]
|
|
public uint PaletteId { get; set; }
|
|
|
|
[JsonPropertyName("shade")]
|
|
public float Shade { get; set; }
|
|
|
|
[JsonPropertyName("slot")]
|
|
public uint Slot { get; set; }
|
|
|
|
[JsonPropertyName("stackSize")]
|
|
public int StackSize { get; set; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public uint WeenieClassId { get; set; }
|
|
|
|
[JsonPropertyName("whenCreate")]
|
|
public uint WhenCreate { get; set; }
|
|
|
|
[JsonPropertyName("whereCreate")]
|
|
public uint WhereCreate { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public RegenerationType WhenCreateEnum
|
|
{
|
|
get
|
|
{
|
|
return (RegenerationType)WhenCreate;
|
|
}
|
|
set
|
|
{
|
|
WhenCreate = (uint)value;
|
|
}
|
|
}
|
|
|
|
[JsonIgnore]
|
|
public RegenerationLocation WhereCreateEnum
|
|
{
|
|
get
|
|
{
|
|
return (RegenerationLocation)WhereCreate;
|
|
}
|
|
set
|
|
{
|
|
WhereCreate = (uint)value;
|
|
}
|
|
}
|
|
|
|
[JsonIgnore]
|
|
public bool Deleted { get; set; }
|
|
}
|
|
}
|