Exemplo n.º 1
0
        protected override string LegendsDescription()
        {
            var timestring = base.LegendsDescription();

            var count = PopNumberMoved.ToString();

            if (PopNumberMoved >= 24)
            {
                count = "dozens";
            }


            var racetext = Race?.ToString().ToLower() ?? RaceId?.ToString() ?? "";


            return($"{timestring} {count} of {racetext} from {Region} joined with the {Entity} at {Site.AltName}.");
        }
Exemplo n.º 2
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                EntityId.DBExport(),
                SiteId.DBExport(),
                RaceId.DBExport(),
                PopNumberMoved.DBExport(),
                RegionId.DBExport(),
                PopFlid.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }