ace/Source/ACE.Entity/Models/PropertiesGenerator.cs
Mag-nus 75fc1ce23c
Step 3. Convert ShardDatabase/WorldObjects biota from the ACE.Database model to the new ACE.Entity model (#2731)
* Step 1. Add new adapter classes and models

All classes and objects added are in new namespaces.

This add has 0 interraction on existing ACE code.

This sets the groundwork for Step 2. Moving World DB caching to the new models

* first part of the world entity usage

* almost there

* final part

* update WeenieExtensions

* fix

* merge fixes and improvements

* ACE.Database new code

* it compiles

* InitializePropertyDictionaries

* WOrldDatabaseWithEntityCache cleanup

* ShardDatabaseWithCaching

* ShardDatabase Cleanup

* todo

* cache counts reported in serverstatus

* House InitializePropertyDictionaries

* improve ServerStatus

* BiotaModel change HousePermissions to Dictionary<uint, bool>

* PropertiesAllegiance to dictionary

* BiotaUpdater improvements

* Shard Database Cache Reporting

* More code ported from Step 3

* Remove stub CharacterCache

* Update WorldDatabaseWithEntityCache.cs

* build fixes

* code audit

* Remove non-callback functions from SerializedShardDatabase

* BiotaUpdater progress.. only emote left

* Emotes done... now need to test

* fix

* Burden/Value fix for containers

* fat fingered EncumbranceVal

* add some safety

* Don't cache player biotas for initial PlayerManager load

* fix null spellbook

* Add another null check

This is redundant as the check is also upstream.

This is to prevent an exception in the future if this function is called from another source.
2020-04-02 22:40:27 -05:00

60 lines
1.9 KiB
C#

using System;
using ACE.Entity.Enum;
namespace ACE.Entity.Models
{
public class PropertiesGenerator
{
/// <summary>
/// This is only used to tie this property back to a specific database row
/// </summary>
public uint DatabaseRecordId { get; set; }
public float Probability { get; set; }
public uint WeenieClassId { get; set; }
public float? Delay { get; set; }
public int InitCreate { get; set; }
public int MaxCreate { get; set; }
public RegenerationType WhenCreate { get; set; }
public RegenLocationType WhereCreate { get; set; }
public int? StackSize { get; set; }
public uint? PaletteId { get; set; }
public float? Shade { get; set; }
public uint? ObjCellId { get; set; }
public float? OriginX { get; set; }
public float? OriginY { get; set; }
public float? OriginZ { get; set; }
public float? AnglesW { get; set; }
public float? AnglesX { get; set; }
public float? AnglesY { get; set; }
public float? AnglesZ { get; set; }
public PropertiesGenerator Clone()
{
var result = new PropertiesGenerator
{
Probability = Probability,
WeenieClassId = WeenieClassId,
Delay = Delay,
InitCreate = InitCreate,
MaxCreate = MaxCreate,
WhenCreate = WhenCreate,
WhereCreate = WhereCreate,
StackSize = StackSize,
PaletteId = PaletteId,
Shade = Shade,
ObjCellId = ObjCellId,
OriginX = OriginX,
OriginY = OriginY,
OriginZ = OriginZ,
AnglesW = AnglesW,
AnglesX = AnglesX,
AnglesY = AnglesY,
AnglesZ = AnglesZ,
};
return result;
}
}
}