From facb96e30766bcc130fbc0232142c3e68888ae23 Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 17 Sep 2015 00:54:24 -0600 Subject: [PATCH] Add LumpFactory method for NumList. --- LibBSP/src/Structs/Common/NumList.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/LibBSP/src/Structs/Common/NumList.cs b/LibBSP/src/Structs/Common/NumList.cs index 45bf398..796b031 100644 --- a/LibBSP/src/Structs/Common/NumList.cs +++ b/LibBSP/src/Structs/Common/NumList.cs @@ -81,5 +81,15 @@ namespace LibBSP { } } } + + /// + /// Creates a new NumList object from a byte array and returns it. + /// + /// byte array to parse + /// The type of number to store + /// The resulting NumList + public static NumList LumpFactory(byte[] data, DataType type) { + return new NumList(data, type); + } } }