public void Setup() { basicEntity = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer); data = new CardData { Name = "TestCard", DataId = 1 }; CardDatabase.GetInstance().AddItem(data); databaseEntity = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1); }
public void Setup() { var data = new CardData { Name = "Test", DataId = 1 }; CardDatabase.GetInstance().AddItem(data); testEntity = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1); anotherEntity = testEntity.Clone(); anotherEntity.AddModule(new ControlModule(anotherEntity, TestDefaults.Enemy)); }
public void Setup() { var data = new CardData() { Name = "Test", DataId = 1 }; data.Stats.Add(new StatInfo("Health", 1)); data.Keywords.Add(new KeywordInfo("Charge", 1)); CardDatabase.GetInstance().AddItem(data); testEntity = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1); clonedEntity = testEntity.Clone(); testCard = testEntity.Clone().AsActor().AsCard(); notEqualEntityDifStats = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1); notEqualEntityDifStats.AsActor().AsCard().ChangeStat("Health", new Modifier(1)); notEqualEntityDifKeywords = testEntity.Clone(); notEqualEntityDifKeywords .AsActor().AsCard().AddKeyword(new Keyword(new KeywordInfo("kwd", 2))); }