mirror of
https://github.com/riperiperi/FreeSO
synced 2026-08-13 20:26:13 -04:00
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace FSO.Server.Database.DA.Objects
|
|
{
|
|
public class DbObject
|
|
{
|
|
//general persist idenfification
|
|
public uint object_id { get; set; }
|
|
public int shard_id { get; set; }
|
|
public uint? owner_id { get; set; }
|
|
public int? lot_id { get; set; }
|
|
|
|
//object info. most of this is unused, but can be used to show state for inventory objects
|
|
public string dyn_obj_name { get; set; }
|
|
public uint type { get; set; } //guid
|
|
public ushort graphic { get; set; }
|
|
public uint value { get; set; }
|
|
public int budget { get; set; }
|
|
public ulong dyn_flags_1 { get; set; }
|
|
public ulong dyn_flags_2 { get; set; }
|
|
|
|
//upgrades
|
|
public uint upgrade_level { get; set; }
|
|
|
|
//token system
|
|
//if >0, attributes are stored on db rather than in state.
|
|
//if 2, we're a value token. (attr 0 contains number that should be displayed in UI)
|
|
public byte has_db_attributes { get; set; }
|
|
|
|
public List<int> AugmentedAttributes;
|
|
}
|
|
}
|