Beyond_Beyaan.Data_Managers.SitRepManager.AddItem C# (CSharp) Method

AddItem() public method

public AddItem ( SitRepItem sitRepItem ) : void
sitRepItem Beyond_Beyaan.Data_Modules.SitRepItem
return void
        public void AddItem(SitRepItem sitRepItem)
        {
            Items.Add(sitRepItem);
        }

Usage Example

Exemplo n.º 1
0
 public void EstablishContact(Empire empireContacted, SitRepManager sitRepManager)
 {
     foreach (Contact contact in contacts)
     {
         if (contact.EmpireInContact == empireContacted && !contact.Contacted)
         {
             //Need to add some fudge factor
             contact.RelationshipStatus = (int)(thisEmpire.EmpireRace.CharismaMultipler * empireContacted.EmpireRace.CharismaMultipler * 500);
             contact.Contacted          = true;
             contact.OutgoingMessage    = MessageType.NONE;
             contact.IncomingMessage    = MessageType.NONE;
             sitRepManager.AddItem(new SitRepItem(Screen.Diplomacy, null, null, new Point(-1, -1), "You have established contact with " + empireContacted.EmpireName + " empire."));
             return;
         }
     }
 }
All Usage Examples Of Beyond_Beyaan.Data_Managers.SitRepManager::AddItem