public void CopyFrom(game_monitor_data from) { if (from == this) { return; } Clear(); MergeFrom(from); }
public void MergeFrom(game_monitor_data from) { if (from == this) { return; } // machineName SetMachineName(from.GetMachineName()); // machineResourceInfo foreach (KeyValuePair <HardwareResourceKey, int> pair in from.GetMachineResourceInfo()) { SetMachineResourceInfo(pair.Key, pair.Value); } // gameResourceInfo foreach (KeyValuePair <GameResourceKey, int> pair in from.GetGameResourceInfo()) { SetGameResourceInfo(pair.Key, pair.Value); } }
public void SetData(game_monitor_data value) { data_ = value; }
public game_monitor_data(game_monitor_data from) { MergeFrom(from); }