Ejemplo n.º 1
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                HfId.DBExport(),
                HfId_Slayer.DBExport(),
                SlayerRace.DBExport(),
                SlayerCaste.DBExport(HistoricalFigure.Castes),
                ArtifiactId_SlayerItem.DBExport(),
                ArtifactId_SlayerShooterItem.DBExport(),
                Cause.DBExport(Causes),
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                ItemID.DBExport(),
                ArtifactId.DBExport(),
                ItemType.DBExport(Item.ItemTypes),
                ItemSubType.DBExport(Item.ItemSubTypes),
                Mat.DBExport(Item.Materials),
                BowItem.DBExport(),
                BowArtifactId.DBExport(),
                BowItemType.DBExport(Item.ItemTypes),
                BowItemSubType.DBExport(Item.ItemSubTypes),
                BowMat.DBExport(Item.Materials)
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 2
0
        internal override void Export(string table)
        {
            //TODO: Incorporate new data
            base.Export(table);

            table = GetType().Name;


            var vals = new List <object>
            {
                Id,
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                Coords.DBExport(),
                EntityId_Abuser.DBExport(),
                BodyHfiDs.DBExport(),
                ItemType.DBExport(Item.ItemTypes),
                ItemSubType.DBExport(Item.ItemSubTypes),
                ItemMat.DBExport(Item.Materials),
                HfId.DBExport(),
                AbuseType.DBExport()
            };



            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 3
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                HfIds.DBExport(),
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                Coords.DBExport()
            };

            if (Pets != null)
            {
                var petExport = Pets.Aggregate("", (current, petRace) => current + (petRace.ToString() + ","));
                petExport = petExport.TrimEnd(',');
                vals.Add(petExport);
            }
            else
            {
                vals.Add(DBNull.Value);
            }

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 4
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                HfIds.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                Coords.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 5
0
 protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
 {
     EventLabel(frm, parent, ref location, "Devourer:", Hf_Devourer);
     if (Hf_Victim != null)
     {
         EventLabel(frm, parent, ref location, "Victim:", Hf_Victim);
     }
     else if (VictimRace != null && VictimCaste != null)
     {
         EventLabel(frm, parent, ref location, "Victim:", HistoricalFigure.Castes[VictimCaste.Value] + " " + VictimRace);
     }
     EventLabel(frm, parent, ref location, "Site:", Site);
     EventLabel(frm, parent, ref location, "Region:", Subregion);
     if (FeatureLayerId != null && FeatureLayerId != -1)
     {
         EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId.ToString());
     }
 }
Ejemplo n.º 6
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                HfId_Group1.DBExport(),
                HfId_Group2.DBExport(),
                Subtype.DBExport(SubTypes),
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 7
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                EntityId.DBExport(),
                HfId_Winner.DBExport(),
                HfIDs_Competitor.DBExport(),
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 8
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                EntityId_Attacker.DBExport(),
                HfId_AttackerGeneral.DBExport(),
                EntityId_Defender.DBExport(),
                HfId_DefenderGeneral.DBExport(),
                Coords.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 9
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                HfId_Devourer.DBExport(),
                HfId_Victim.DBExport(),
                VictimRace.DBExport(),
                VictimCaste.DBExport(HistoricalFigure.Castes),
                EntityId.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 10
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                HfId_Seeker.DBExport(),
                HfId_Target.DBExport(),
                RelationshipString.DBExport(RelationshipStrings),
                Reason.DBExport(Reasons),
                ReasonId.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 11
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                HfId_Woundee.DBExport(),
                HfId_Wounder.DBExport(),
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                BodyPart.DBExport(),
                InjuryType.DBExport(),
                PartLost.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Ejemplo n.º 12
0
 protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location) //TODO: Test Display
 {
     foreach (var hf in Hfs)
     {
         EventLabel(frm, parent, ref location, "HF:", hf);
     }
     if (Pets != null)
     {
         foreach (var pet in Pets)
         {
             EventLabel(frm, parent, ref location, "Pet:", pet);
         }
     }
     if (Site != null)
     {
         EventLabel(frm, parent, ref location, "Site:", Site);
     }
     if (Subregion != null)
     {
         EventLabel(frm, parent, ref location, "Region:", Subregion);
     }
     if (FeatureLayerId != null && FeatureLayerId.Value != -1)
     {
         EventLabel(frm, parent, ref location, "Feature Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
     }
     if (Coords != Point.Empty)
     {
         EventLabel(frm, parent, ref location, "Coords:", new Coordinate(Coords));
     }
 }
Ejemplo n.º 13
0
        protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
        {
            foreach (var hf in Hf_Group1)
            {
                EventLabel(frm, parent, ref location, "Group 1:", hf);
            }
            foreach (var hf in Hf_Group2)
            {
                EventLabel(frm, parent, ref location, "Group 2:", hf);
            }

            EventLabel(frm, parent, ref location, "Site:", Site);
            EventLabel(frm, parent, ref location, "Region:", Subregion);
            if (FeatureLayerId != null && FeatureLayerId > -1)
            {
                EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
            }
        }
Ejemplo n.º 14
0
 protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
 {
     EventLabel(frm, parent, ref location, "HF:", Hf);
     EventLabel(frm, parent, ref location, "State:", BodyState);
     EventLabel(frm, parent, ref location, "Site:", Site);
     if (Structure != null)
     {
         EventLabel(frm, parent, ref location, "Structure:", Structure);
     }
     else
     {
         EventLabel(frm, parent, ref location, "Building ID:", BuildingId.ToString());
     }
     EventLabel(frm, parent, ref location, "Region:", Subregion);
     EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
     EventLabel(frm, parent, ref location, "Coords:", new Coordinate(Coords));
 }
Ejemplo n.º 15
0
 protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
 {
     EventLabel(frm, parent, ref location, "HF:", Hf);
     if (Escape)
     {
         EventLabel(frm, parent, ref location, "Escaped from", "");
         EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
     }
     else if (Return)
     {
         EventLabel(frm, parent, ref location, "Returned", "");
         EventLabel(frm, parent, ref location, "Site:", Site);
         EventLabel(frm, parent, ref location, "Coords:", new Coordinate(Coords));
     }
     else if (Subregion != null)
     {
         EventLabel(frm, parent, ref location, "Region:", Subregion);
     }
     else if (FeatureLayerId != -1)
     {
         if (FeatureLayerId != null)
         {
             EventLabel(frm, parent, ref location, "Feature Layer:", FeatureLayerId.Value.ToString());
         }
     }
 }
Ejemplo n.º 16
0
 protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
 {
     EventLabel(frm, parent, ref location, "HF:", Hf);
     if (Situation.HasValue)
     {
         EventLabel(frm, parent, ref location, "Situation:", Situations[Situation.Value]);
     }
     if (Reason.HasValue)
     {
         EventLabel(frm, parent, ref location, "Reason:", Reasons[Reason.Value]);
     }
     EventLabel(frm, parent, ref location, "Site:", Site);
     EventLabel(frm, parent, ref location, "Region:", Subregion);
     if (FeatureLayerId != null && FeatureLayerId > -1)
     {
         EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
     }
     EventLabel(frm, parent, ref location, "Coords:", new Coordinate(Coords));
 }
Ejemplo n.º 17
0
        protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
        {
            EventLabel(frm, parent, ref location, "Abuser:"******"Abuser:"******"Victim:", hf);
                }
            }

            EventLabel(frm, parent, ref location, "Site:", Site);
            EventLabel(frm, parent, ref location, "Region:", Subregion);
            if (FeatureLayerId != null && FeatureLayerId > -1)
            {
                EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
            }
            EventLabel(frm, parent, ref location, "Coords:", new Coordinate(Coords));
        }
Ejemplo n.º 18
0
 protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
 {
     EventLabel(frm, parent, ref location, "HF:", Hf);
     EventLabel(frm, parent, ref location, "Ghost:", Ghost);
     EventLabel(frm, parent, ref location, "Site:", Site);
     EventLabel(frm, parent, ref location, "Region:", Subregion);
     EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
 }
Ejemplo n.º 19
0
 protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location)
 {
     //TODO: Incorporate new data
     EventLabel(frm, parent, ref location, "HF:", Hf);
     if (Site != null)
     {
         EventLabel(frm, parent, ref location, "Site:", Site);
     }
     if (Subregion != null)
     {
         EventLabel(frm, parent, ref location, "Region:", Subregion);
     }
     if (FeatureLayerId != null)
     {
         EventLabel(frm, parent, ref location, "Layer:", FeatureLayerId == -1 ? "" : FeatureLayerId.ToString());
     }
     if (OldJob.HasValue)
     {
         EventLabel(frm, parent, ref location, "Old Job:", Unit.JobTypes[OldJob.Value]);
     }
     if (NewJob.HasValue)
     {
         EventLabel(frm, parent, ref location, "New Job:", Unit.JobTypes[NewJob.Value]);
     }
 }