public void Complete() { if (Defaults == null && UnitTypes != null) { var item = UnitTypes.FirstOrDefault(i => i.UnitType == "*"); if (item != null) { Defaults = item.Defaults; } } }
/// <summary>Adds a UnitType to the packet.</summary> /// <param name="_value">The UnitType to add.</param> public void Write(UnitType _value) { Write(UnitTypes.FirstOrDefault(x => x.Value == _value).Key); }