Esempio n. 1
0
 //Float2
 public static void NifStream(out Float2 val, IStream s, NifInfo info)
 {
     val         = new Float2();
     val.data[0] = ReadFloat(s);
     val.data[1] = ReadFloat(s);
 }
Esempio n. 2
0
 public static void NifStream(Triangle val, OStream s, NifInfo info)
 {
     WriteUShort(val.v1, s);
     WriteUShort(val.v2, s);
     WriteUShort(val.v3, s);
 }
Esempio n. 3
0
 public static void NifStream(Vector3 val, OStream s, NifInfo info)
 {
     WriteFloat(val.x, s);
     WriteFloat(val.y, s);
     WriteFloat(val.z, s);
 }
Esempio n. 4
0
 public strInfo(NifInfo value)
 {
     info = value;
 }
Esempio n. 5
0
 public static void NifStream(uint val, OStream s, NifInfo info) => WriteUInt(val, s);
Esempio n. 6
0
 public static void NifStream(HeaderString val, OStream s, NifInfo info)
 {
     s += (info.version <= VER_10_0_1_0 ? "NetImmerse File Format, Version " : "Gamebryo File Format, Version ");
     s += FormatVersionString(info.version);
     s += "\n";
 }
Esempio n. 7
0
 public static void NifStream(LineString val, OStream s, NifInfo info) => s += val.line + "\n";
Esempio n. 8
0
 public static void NifStream(bool val, OStream s, NifInfo info) => WriteBool(val, s, info.version);
Esempio n. 9
0
 //float
 public static void NifStream(out float val, IStream s, NifInfo info) => val = ReadFloat(s);
Esempio n. 10
0
 public static void NifStream(byte val, OStream s, NifInfo info) => WriteByte(val, s);
Esempio n. 11
0
 //bool
 public static void NifStream(out bool val, IStream s, NifInfo info) => val = ReadBool(s, info.version);
Esempio n. 12
0
 //byte
 public static void NifStream(out byte val, IStream s, NifInfo info) => val = ReadByte(s);
Esempio n. 13
0
 public static void NifStream(short val, OStream s, NifInfo info) => WriteShort(val, s);
Esempio n. 14
0
 //short
 public static void NifStream(out short val, IStream s, NifInfo info) => val = ReadShort(s);
Esempio n. 15
0
 public static void NifStream(Float3 val, OStream s, NifInfo info)
 {
     WriteFloat(val.data[0], s);
     WriteFloat(val.data[1], s);
     WriteFloat(val.data[2], s);
 }
Esempio n. 16
0
 public static void NifStream(float val, OStream s, NifInfo info) => WriteFloat(val, s);
Esempio n. 17
0
 public static void NifStream(Color3 val, OStream s, NifInfo info)
 {
     WriteFloat(val.r, s);
     WriteFloat(val.g, s);
     WriteFloat(val.b, s);
 }
Esempio n. 18
0
 //string
 public static void NifStream(out string val, IStream s, NifInfo info) => val = ReadString(s);
Esempio n. 19
0
 //LineString
 public static void NifStream(out LineString val, IStream s, NifInfo info) => val = new LineString
 {
     line = s.GetLine(Buf, 256)
 };
Esempio n. 20
0
 public static void NifStream(string val, OStream s, NifInfo info) => WriteString(val, s);
Esempio n. 21
0
 public static void NifStream <T>(Key <T> key, OStream file, NifInfo info, int type) => NifStream(key, file, info, (KeyType)type);
Esempio n. 22
0
 public static void NifStream(TexCoord val, OStream s, NifInfo info)
 {
     WriteFloat(val.u, s);
     WriteFloat(val.v, s);
 }
Esempio n. 23
0
 public static void Set(BStream s, NifInfo value)
 {
     infoIdx = value;
 }
Esempio n. 24
0
 //unsigned int
 public static void NifStream(out uint val, IStream s, NifInfo info) => val = ReadUInt(s);