public TagDeltaSet CreateDeltas(TagSet comp) { TagDeltaSet set = new TagDeltaSet(); for (int i = 1; i < 0x200; i++) { if (this.m_values[i] != comp.m_values[i]) { set.Add(i, this.m_values[i], comp.m_values[i]); } } return(set); }
public TagDeltaSet CreateDeltas(List <Network.Entity.Tag> comp) { TagDeltaSet set = new TagDeltaSet(); foreach (Network.Entity.Tag tag in comp) { int name = tag.Name; int num2 = 0; this.m_values.TryGetValue(name, out num2); int curr = tag.Value; if (num2 != curr) { set.Add(name, num2, curr); } } return(set); }
public TagDeltaSet CreateDeltas(Map <GAME_TAG, int> comp) { TagDeltaSet set = new TagDeltaSet(); foreach (KeyValuePair <GAME_TAG, int> pair in comp) { int key = pair.Key; int num2 = 0; this.m_values.TryGetValue(key, out num2); int curr = pair.Value; if (num2 != curr) { set.Add(key, num2, curr); } } return(set); }