//Information displayed in the "New Client Request" menu. public string NewRequestedClientDetails() { Name = clientData.Name; RequestedCoffin = clientData.RequestedCoffin; RequestedHeadstone = clientData.RequestedHeadstone; return(Name + "\n" + "Requested Coffin: " + RequestedCoffin + "\n" + "Requested Headstone: " + RequestedHeadstone); }
private void Awake() { Name = clientData.Name; CauseOfDeath = clientData.CauseOfDeath; ReligiousFaction = clientData.ReligiousFaction; RequestedCoffin = clientData.RequestedCoffin; RequestedHeadstone = clientData.RequestedHeadstone; }
void Start() { mann = GameObject.FindObjectOfType <GameManager>().GetComponent <GameManager>(); uimann = GameObject.FindObjectOfType <UIManager>(); invman = GameObject.FindObjectOfType <InventoryMana>().GetComponent <InventoryMana>(); climan = FindObjectOfType <ClientMana>(); //mann = mann //invman = if (mann.tutorial) { namenum = 0; Deathnum = 0; } // Debug.Log(invman.headstoneList.Count); RequestedHeadstone = invman.headstoneList[headnum].GetComponent <headstoneobj>().currentheadstone; RequestedCoffin = invman.CoffinList[coffinnum].GetComponent <Coffinobj>().SelectedCoffin; clientName.text = ("Name:\n" + climan.Client[namenum]); Causeofdeath.text = ("Cause of Death:\n" + climan.Death[Deathnum]); client = climan.Client[namenum]; // name.text = ("Name:\n"+client); Reasonofdeath = climan.Death[Deathnum]; Causeofdeath.text = ("Cause of Death:\n" + Reasonofdeath); climan.openclients.Insert(0, this); payr.text = ("Pay: " + Pay.ToString()); timetocom.text = ("Time to Complete: " + timetocomplete.ToString()); currentstatus = Status.notstarted; //txtcontents = textAsset.text; jobstatus.text = "Current Status: Not Started"; }
/// <summary> /// Seeds the data without calling .SaveChanges /// </summary> public void Seed() { // Manager var managerPerson = new Person { Id = 0, FirstName = "fn_manager", LastName = "ln_manager", BirthDate = new DateTime(1969, 1, 3) }; var managerWorker = new Worker { PersonId = managerPerson.Id, Person = managerPerson, WorkTime = "9h - 17h", Role = WorkerRoles.Manager }; var manager = new Manager { WorkerId = managerWorker.PersonId, Worker = managerWorker }; // Tech staff var techStaffPerson = new Person { Id = 1, FirstName = "fn_staff_member", LastName = "ln_staff_member", BirthDate = new DateTime(1962, 5, 9) }; var techStaffWorker = new Worker { PersonId = techStaffPerson.Id, Person = techStaffPerson, WorkTime = "8h - 16h", Role = WorkerRoles.TechnicalStaff }; // Dead person var deadPerson = new Person { Id = 2, BirthDate = new DateTime(1997, 4, 3), FirstName = "Danilo", LastName = "Novakovic" }; var deathRecord = new DeathRecord { PersonId = deadPerson.Id, Person = deadPerson, DeathDate = DateTime.Now }; // Family var sisterPerson = new Person { Id = 3, BirthDate = new DateTime(1999, 2, 6), FirstName = "Aleksandra", LastName = "Novakovic" }; var familyMember = new FamilyMember { Id = sisterPerson.Id, MemberId = sisterPerson.Id, Member = sisterPerson, RelatedToId = deathRecord.PersonId, RelatedTo = deathRecord, RelationType = "sister" }; // Chapel var chapelLocation = new Location { Id = 0, Latitude = 45.571988, Longitude = 19.668292, }; var chapel = new Chapel { Id = 0, Name = "White Chapel", Location = chapelLocation }; // Contracts var contract = new Contract { Id = 0, Manager = manager, FamilyMember = familyMember, FuneralStartTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day + 1, 14, 00, 00), FuneralType = FuneralType.Burial, Chapel = chapel }; var graveSiteLocation = new Location { Id = 1, Latitude = 45.572393, Longitude = 19.667079 }; var graveSite = new GraveSite { DeathRecordId = 0, DeathRecord = deathRecord, Location = graveSiteLocation, Type = GraveSiteType.Coffin }; var coffin = new Coffin { GraveSiteId = graveSite.DeathRecordId, GraveSite = graveSite, Mark = "Black Coffin v1.0 - Smooth Edition" }; _context.Locations.AddOrUpdate(chapelLocation, graveSiteLocation); _context.Chapels.AddOrUpdate(chapel); _context.Persons.AddOrUpdate(managerPerson, techStaffPerson, deadPerson, sisterPerson); _context.DeathRecords.AddOrUpdate(deathRecord); _context.GraveSites.AddOrUpdate(graveSite); _context.Coffins.AddOrUpdate(coffin); _context.FamilyMembers.AddOrUpdate(familyMember); _context.Workers.AddOrUpdate(managerWorker, techStaffWorker); _context.Managers.AddOrUpdate(manager); _context.TechnicalStaff.AddOrUpdate(new TechnicalStaff { WorkerId = techStaffWorker.PersonId, ManagerId = manager.WorkerId }); _context.Contracts.AddOrUpdate(contract); }
private void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { //check for each item available and add. //itemtype references the item array found under the inventoryScript //gameobject. //check if full so we can add the items if (InventoryScript.MyInstance.MyEmptySlotCount > 0) { if (itemType == "Leaflet") { Leaflet leaflet = (Leaflet)Instantiate(InventoryScript.MyInstance.items[1]); InventoryScript.MyInstance.AddItem(leaflet); } else if (itemType == "Egg") { Egg egg = (Egg)Instantiate(InventoryScript.MyInstance.items[2]); InventoryScript.MyInstance.AddItem(egg); } else if (itemType == "Sword") { Sword sword = (Sword)Instantiate(InventoryScript.MyInstance.items[3]); InventoryScript.MyInstance.AddItem(sword); } else if (itemType == "Trident") { Trident trident = (Trident)Instantiate(InventoryScript.MyInstance.items[4]); InventoryScript.MyInstance.AddItem(trident); } else if (itemType == "Airpump") { AirPump ap = (AirPump)Instantiate(InventoryScript.MyInstance.items[5]); InventoryScript.MyInstance.AddItem(ap); } else if (itemType == "Bar") { PlatinumBar bar = (PlatinumBar)Instantiate(InventoryScript.MyInstance.items[6]); InventoryScript.MyInstance.AddItem(bar); } else if (itemType == "Knife") { Knife knife = (Knife)Instantiate(InventoryScript.MyInstance.items[7]); InventoryScript.MyInstance.AddItem(knife); } else if (itemType == "Rope") { Rope rope = (Rope)Instantiate(InventoryScript.MyInstance.items[8]); InventoryScript.MyInstance.AddItem(rope); } else if (itemType == "Skull") { Skull skull = (Skull)Instantiate(InventoryScript.MyInstance.items[9]); InventoryScript.MyInstance.AddItem(skull); } else if (itemType == "Sack") { Sack sack = (Sack)Instantiate(InventoryScript.MyInstance.items[10]); InventoryScript.MyInstance.AddItem(sack); } else if (itemType == "Lantern") { Lantern lantern = (Lantern)Instantiate(InventoryScript.MyInstance.items[11]); InventoryScript.MyInstance.AddItem(lantern); } else if (itemType == "Bottle") { Bottle bottle = (Bottle)Instantiate(InventoryScript.MyInstance.items[12]); InventoryScript.MyInstance.AddItem(bottle); } else if (itemType == "Candle") { Candle candle = (Candle)Instantiate(InventoryScript.MyInstance.items[13]); InventoryScript.MyInstance.AddItem(candle); } else if (itemType == "BlackBook") { BlkBook book = (BlkBook)Instantiate(InventoryScript.MyInstance.items[14]); InventoryScript.MyInstance.AddItem(book); } else if (itemType == "PlasticPile") { PlasticPile plastic = (PlasticPile)Instantiate(InventoryScript.MyInstance.items[15]); InventoryScript.MyInstance.AddItem(plastic); } else if (itemType == "Buoy") { Buoy buoy = (Buoy)Instantiate(InventoryScript.MyInstance.items[16]); InventoryScript.MyInstance.AddItem(buoy); } else if (itemType == "Shovel") { Shovel shovel = (Shovel)Instantiate(InventoryScript.MyInstance.items[17]); InventoryScript.MyInstance.AddItem(shovel); } else if (itemType == "Scarab") { Scarab scarab = (Scarab)Instantiate(InventoryScript.MyInstance.items[18]); InventoryScript.MyInstance.AddItem(scarab); } else if (itemType == "PotOfGold") { PotOfGold gold = (PotOfGold)Instantiate(InventoryScript.MyInstance.items[19]); InventoryScript.MyInstance.AddItem(gold); } else if (itemType == "Bracelet") { Bracelet bracelet = (Bracelet)Instantiate(InventoryScript.MyInstance.items[20]); InventoryScript.MyInstance.AddItem(bracelet); } else if (itemType == "Coal") { Coal coal = (Coal)Instantiate(InventoryScript.MyInstance.items[21]); InventoryScript.MyInstance.AddItem(coal); } else if (itemType == "Figurine") { Figurine fig = (Figurine)Instantiate(InventoryScript.MyInstance.items[22]); InventoryScript.MyInstance.AddItem(fig); } else if (itemType == "Diamond") { Diamond diamond = (Diamond)Instantiate(InventoryScript.MyInstance.items[23]); InventoryScript.MyInstance.AddItem(diamond); } else if (itemType == "Torch") { Torch torch = (Torch)Instantiate(InventoryScript.MyInstance.items[24]); InventoryScript.MyInstance.AddItem(torch); } else if (itemType == "Coins") { Coins coins = (Coins)Instantiate(InventoryScript.MyInstance.items[25]); InventoryScript.MyInstance.AddItem(coins); } else if (itemType == "Key") { Key key = (Key)Instantiate(InventoryScript.MyInstance.items[26]); InventoryScript.MyInstance.AddItem(key); } else if (itemType == "Matches") { Matches matches = (Matches)Instantiate(InventoryScript.MyInstance.items[27]); InventoryScript.MyInstance.AddItem(matches); } else if (itemType == "Wrench") { Wrench wrench = (Wrench)Instantiate(InventoryScript.MyInstance.items[28]); InventoryScript.MyInstance.AddItem(wrench); } else if (itemType == "Screwdriver") { Screwdriver sd = (Screwdriver)Instantiate(InventoryScript.MyInstance.items[29]); InventoryScript.MyInstance.AddItem(sd); } else if (itemType == "Jewels") { Jewels jewels = (Jewels)Instantiate(InventoryScript.MyInstance.items[30]); InventoryScript.MyInstance.AddItem(jewels); } else if (itemType == "Coffin") { Coffin coffin = (Coffin)Instantiate(InventoryScript.MyInstance.items[31]); InventoryScript.MyInstance.AddItem(coffin); } else if (itemType == "Chalice") { Chalice chalice = (Chalice)Instantiate(InventoryScript.MyInstance.items[32]); InventoryScript.MyInstance.AddItem(chalice); } //the following items should not be displayed in the world //but going to add just in case we revamp how these items //are obtained. else if(itemType == "Garlic") { Garlic garlic = (Garlic)Instantiate(InventoryScript.MyInstance.items[33]); InventoryScript.MyInstance.AddItem(garlic); } else if(itemType == "Sceptre") { Sceptre sep = (Sceptre)Instantiate(InventoryScript.MyInstance.items[34]); InventoryScript.MyInstance.AddItem(sep); } Destroy(gameObject); } //probably want to utilize CLI popup here else { Debug.Log("Bag full"); } } }