public static void Initialise() { m_network = new TradeNetwork[1] { new TradeNetwork() }; using (Database.DatabaseManager db = new Database.DatabaseManager()) { Character currentCharacter = TestMain.GetPlayer().GetCharacter(); throw new NotImplementedException(); //m_network[0].AddKingdom(db.Kingdom.Single(k => k.king.Contains(currentCharacter.id))); } }
public void Update() { Player currentPlayer = TestMain.GetPlayer(); ModeType newMode = currentPlayer.GetCurrentModeType(); if (currentMode != newMode) { switch (currentPlayer.GetCurrentModeType()) { case ModeType.army: break; case ModeType.build: if (m_building.Length > 0) { m_animation.SetBuilding(m_building[0]); m_animation.ShowBuilding(true); } else if (domain != null) { if (currentPlayer.GetCharacter().RulesDomain(GetDomain())) { m_animation.ShowBuilding(false); } else { m_animation.ShowBuilding(true); throw new NotImplementedException(); //ChangeSpriteMap("Overlay", m_domain); } break; } break; case ModeType.observe: if (m_building.Length > 0) { m_animation.ShowBuilding(true); } else if (domain != null) { throw new NotImplementedException(); //m_animationLayer["Overlay"].SetVisible(true);ChangeSpriteMap("Overlay", m_domain); } break; } currentMode = newMode; } }