public Assignment(RelicType relicType, List <Ticket> members, DateTime deadline, Ticket host) { RelicType = relicType; Members = members; Done = false; DeadLine = deadline; Host = host; }
public Ticket(Guid userGuid, string displayName, Characteristics characteristics, RelicType relicType) { UserGuid = userGuid; DisplayName = displayName; RelicType = relicType; Active = true; Characteristics = characteristics; TimeStamp = DateTime.Now; }
public Assignment CreateAssignment(ICollection <Ticket> tickets, RelicType relicType, Ticket host) { var assignment = new Assignment(relicType, tickets.ToList(), DateTime.Now.AddSeconds(30), host); foreach (var ticket in tickets) { ticket.Assignment = assignment; ticket.Accepted = false; } return(assignment); }
public void ExecuteRelicEffect(RelicType type) { if (type == RelicType.Nova) { spellbook.PoisonNova(castPos.transform); } if (type == RelicType.Beam) { spellbook.PoisonBeam(castPos.transform); } if (type == RelicType.Fang) { spellbook.PoisonFang(castPos.transform); } }
public string GetRelicStat(RelicType type, RelicStat stat) { switch (type) { case RelicType.Attack: tempBaseRelic = new AttackRelic(); break; case RelicType.Health: tempBaseRelic = new HealthRelic(); break; case RelicType.Speed: tempBaseRelic = new SpeedRelic(); break; case RelicType.Accuracy: tempBaseRelic = new AccuracyRelic(); break; } switch (stat) { case RelicStat.PartitionKey: return(tempBaseRelic.PartitionKey); case RelicStat.RowKey: return(tempBaseRelic.RowKey); case RelicStat.Stat2Mod: return(tempBaseRelic.Stat2Mod.ToString()); case RelicStat.ModValue: return(tempBaseRelic.ModValue.ToString()); case RelicStat.Desc: return(tempBaseRelic.Desc); default: return("No Stat Defined"); // No Stat Defined } }
private List <RelicType> LoadRelics() { using var webClient = new System.Net.WebClient(); var json = webClient.DownloadString("https://github.com/WFCD/warframe-items/blob/master/data/json/Relics.json?raw=true"); dynamic result = JsonConvert.DeserializeObject(json); var list = new List <RelicType>(); foreach (dynamic relic in result) { var name = (string)relic.name; if (name.EndsWith("Intact")) { var relicType = new RelicType { BaseName = name.Remove(name.Length - 7), UniqueName = relic.uniqueName, Vaulted = relic.drops == null }; list.Add(relicType); } } return(list); }
//private HashSet<Ticket> Index { get; set; } = new HashSet<Ticket>(); public Ticket CreateTicket(Guid userGuid, string displayName, Characteristics characteristics, RelicType relicType) { var ticket = new Ticket(userGuid, displayName, characteristics, relicType); Tickets[userGuid] = ticket; return(ticket); }