public virtual void CardHasChangedZones(Game game, Card card, Enums.Zone oldZone, Enums.Zone newZone) { }
public void Record(Enums.Zone zone, Enums.IdTransformCard id, CardBehaviour card, bool IsUnlock, bool IsRecordInTheLastData = false, bool IsFollowCard = true) { List <RecordDatas> datas; if (IsRecordInTheLastData == true) { if (recordsData.Count == 0) { // TODO: Break the function. return; } else { // TODO: Get the list of record. recordsData.TryGetValue(recordsData.Count - 1, out datas); if (object.ReferenceEquals(datas, null)) { datas = new List <RecordDatas>(); } } } else { datas = new List <RecordDatas>(); } RecordDatas data = new RecordDatas(); // ======================================== Set the value ================================= // // TODO: Update the id transform. data.idParents = id; // TODO: Update the zone. data.zone = zone; // TODO: Update the state unlock. data.IsUnlock = IsUnlock; // TODO: Set the default card. data.cards = card; // TODO: set the card save. data.cardSave = GamePlay.Instance.cardSaveCache; // TODO: Set the score. data.score = Contains.Score; // TODO: Set the state follow. data.IsFollowCard = IsFollowCard; // ======================================== Ends ================================= // datas.Add(data); if (IsRecordInTheLastData) { recordsData[recordsData.Count - 1] = datas; } else { recordsData.Add(recordsData.Count, datas); } }
public virtual void CardHasChangedZones(Game game, Card card, Enums.Zone previousZone, Enums.Zone currentZone) { }