コード例 #1
0
        public StateInterCommands Clone()
        {
            StateInterCommands ret = new StateInterCommands();

            ret.Commands = new List <KeyValuePair <short, float> >(Commands);
            return(ret);
        }
コード例 #2
0
 private void InitFields(StateInterCommands right)
 {
     if (Commands == null)
     {
         Commands = new List <KeyValuePair <short, float> >(32);
     }
     Commands.Clear();
     if (right.Commands != null)
     {
         Commands.AddRange(right.Commands);
     }
 }