public StateInterCommands Clone() { StateInterCommands ret = new StateInterCommands(); ret.Commands = new List <KeyValuePair <short, float> >(Commands); return(ret); }
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); } }