Пример #1
0
 public UwmfLump(LumpName name, MapData mapData)
 {
     Name     = name;
     _mapData = mapData;
 }
Пример #2
0
 public static DataLump ReadFromStream(LumpName name, Action <Stream> getData)
 {
     using var stream = new MemoryStream();
     getData(stream);
     return(new DataLump(name, stream.GetBuffer()));
 }
Пример #3
0
 public static DataLump FromStream(LumpName name, Stream stream)
 {
     using var tempStream = new MemoryStream();
     stream.CopyTo(tempStream);
     return(new DataLump(name, tempStream.GetBuffer()));
 }
Пример #4
0
 public DataLump(LumpName name, string text) : this(name, Encoding.ASCII.GetBytes(text))
 {
 }
Пример #5
0
 public DataLump(LumpName name, byte[] data)
 {
     Name  = name;
     _data = data;
 }
Пример #6
0
 public Marker(LumpName name)
 {
     Name = name;
 }