//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); }
public static void NifStream(Triangle val, OStream s, NifInfo info) { WriteUShort(val.v1, s); WriteUShort(val.v2, s); WriteUShort(val.v3, s); }
public static void NifStream(Vector3 val, OStream s, NifInfo info) { WriteFloat(val.x, s); WriteFloat(val.y, s); WriteFloat(val.z, s); }
public strInfo(NifInfo value) { info = value; }
public static void NifStream(uint val, OStream s, NifInfo info) => WriteUInt(val, s);
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"; }
public static void NifStream(LineString val, OStream s, NifInfo info) => s += val.line + "\n";
public static void NifStream(bool val, OStream s, NifInfo info) => WriteBool(val, s, info.version);
//float public static void NifStream(out float val, IStream s, NifInfo info) => val = ReadFloat(s);
public static void NifStream(byte val, OStream s, NifInfo info) => WriteByte(val, s);
//bool public static void NifStream(out bool val, IStream s, NifInfo info) => val = ReadBool(s, info.version);
//byte public static void NifStream(out byte val, IStream s, NifInfo info) => val = ReadByte(s);
public static void NifStream(short val, OStream s, NifInfo info) => WriteShort(val, s);
//short public static void NifStream(out short val, IStream s, NifInfo info) => val = ReadShort(s);
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); }
public static void NifStream(float val, OStream s, NifInfo info) => WriteFloat(val, s);
public static void NifStream(Color3 val, OStream s, NifInfo info) { WriteFloat(val.r, s); WriteFloat(val.g, s); WriteFloat(val.b, s); }
//string public static void NifStream(out string val, IStream s, NifInfo info) => val = ReadString(s);
//LineString public static void NifStream(out LineString val, IStream s, NifInfo info) => val = new LineString { line = s.GetLine(Buf, 256) };
public static void NifStream(string val, OStream s, NifInfo info) => WriteString(val, s);
public static void NifStream <T>(Key <T> key, OStream file, NifInfo info, int type) => NifStream(key, file, info, (KeyType)type);
public static void NifStream(TexCoord val, OStream s, NifInfo info) { WriteFloat(val.u, s); WriteFloat(val.v, s); }
public static void Set(BStream s, NifInfo value) { infoIdx = value; }
//unsigned int public static void NifStream(out uint val, IStream s, NifInfo info) => val = ReadUInt(s);