Example #1
0
        public void CopyFrom(game_monitor_data from)
        {
            if (from == this)
            {
                return;
            }

            Clear();
            MergeFrom(from);
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public void SetData(game_monitor_data value)
 {
     data_ = value;
 }
Example #4
0
 public game_monitor_data(game_monitor_data from)
 {
     MergeFrom(from);
 }