public CQSaveFile_LinePoint(CQSaveFile_LinePoint data) { this.GateID = data.GateID; this.Index = data.Index; this.Type = data.Type; this.EndType = data.EndType; }
public void VisitEndTypes(EndTypes end) { Unused.Value = end; DBC.Assert(m_state == State.Types, "state is {0}", m_state); Log.DebugLine(this, "-------------"); Log.DebugLine(this, "VisitEndTypes"); m_types.AddRange(m_keys.Select(k => k.Type.FullName)); m_types.Sort(); m_state = State.Calls; }
public void EndGame(EndTypes end) { this.gameManager.score = this._score; switch (end) { case EndTypes.Win: this.gameManager.gameResult = EndTypes.Win; break; case EndTypes.Defeat: this.gameManager.gameResult = EndTypes.Defeat; break; } SceneManager.LoadScene("Result", LoadSceneMode.Single); }
public void VisitEnd(EndTypes end) { Unused.Value = end; int maxNames = Settings.Get("maxNamespace", 40); string details = string.Empty; foreach (KeyValuePair<string, int> entry in m_counts) { if (entry.Value > maxNames) details = string.Format("{0} has {1} public types. {2}", entry.Key, entry.Value, details); } if (details.Length > 0) { Log.DebugLine(this, details); Reporter.AssemblyFailed(Cache.Assembly, CheckID, details); } }
private void DoCheckTypes(AssemblyCache cache, string[] onlyType) { Profile.Start("CheckTypes"); BeginTypes begin = new BeginTypes(); m_checker.Dispatcher.Dispatch(begin); foreach (TypeDefinition type in cache.Types) { if (DoNameNeedsCheck(type.FullName, onlyType)) { m_checker.Check(type); } } EndTypes end = new EndTypes(); m_checker.Dispatcher.Dispatch(end); Profile.Stop("CheckTypes"); }
public void ApplyEndGame(int levelNumber, int points, EndTypes endType, IList <InventoryItem> items, Location location) { var gameEndRecord = new GameEndRecord { LevelNumber = levelNumber, Points = points, EndType = endType }; GameEndRecords.Add(gameEndRecord); InventoryItems.Clear(); if (endType != EndTypes.Died) { Location = location; if (items.Any()) { InventoryItems.AddRange(items); } } }
public void VisitEnd(EndTypes end) { Unused.Value = end; int maxNames = Settings.Get("maxNamespace", 40); string details = string.Empty; foreach (KeyValuePair <string, int> entry in m_counts) { if (entry.Value > maxNames) { details = string.Format("{0} has {1} public types. {2}", entry.Key, entry.Value, details); } } if (details.Length > 0) { Log.DebugLine(this, details); Reporter.AssemblyFailed(Cache.Assembly, CheckID, details); } }
public void GameEnd(int points, string playerName, string userId, EndTypes endType, int levelNumber, List <HeldItemDto> items, int money, string escapeType) { string itemDisplayText = items.Any() ? string.Join(", ", items.Select(x => x.Name)) : "nothing"; string message = $"{playerName} has {endType} on level {levelNumber} with {points} points while holding {itemDisplayText} and {money} coins."; _chatClients.ForEach(c => c.SendMessage(message)); Survivor survivor = _survivorRepo.GetOrCreate(playerName, userId); Location location = _repo.Single(LocationSpecification.ByEscapeType(escapeType)); survivor.Money += money; // You get to keep money even if dead. var inventoryItems = items.Select(x => x.ToInventoryItem()).ToList(); survivor.ApplyEndGame(levelNumber, points, endType, inventoryItems, location); _survivorRepo.Save(survivor); }
public void VisitEnd(EndTypes end) { Unused.Value = end; m_methods.Sort(m_comparer); }
internal void Dispatch(EndTypes types) { m_excluding.Clear(); DoVisit(types); }
public LineEndWithFocus(LinkLine line, EndTypes endType) { Line = line; EndType = endType; }