mirror of
https://github.com/celisej567/LibBSP.git
synced 2026-09-11 20:09:36 +03:00
Add LumpFactory method for NumList.
This commit is contained in:
@@ -81,5 +81,15 @@ namespace LibBSP {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <c>NumList</c> object from a <c>byte</c> array and returns it.
|
||||
/// </summary>
|
||||
/// <param name="data"><c>byte</c> array to parse</param>
|
||||
/// <param name="type">The type of number to store</param>
|
||||
/// <returns>The resulting <c>NumList</c></returns>
|
||||
public static NumList LumpFactory(byte[] data, DataType type) {
|
||||
return new NumList(data, type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user