public override void WriteToStream(Stream mstream, short ParsingRule, ThingDb.Thing thing) { NoxBinaryWriter bw = new NoxBinaryWriter(mstream, CryptApi.NoxCryptFormat.NONE); bw.Write(NumOfColors); bw.Write(LightIntensity); bw.Write(LightRadius); bw.Write(UnknownVal); bw.Write(Unknown2); bw.Write(Unknown3); bw.Write(Unknown4); bw.Write(Unknown5); bw.Write(Unknown6); for (int i = 0; i < 16; i++) { bw.WriteColor(ChangeColors[i]); } for (int i = 0; i < 16; i++) { bw.Write(ChangeIntensity[i]); } for (int i = 0; i < 16; i++) { bw.Write(ChangeRadius[i]); } bw.Write(ColorChangeIndex); bw.Write(IntensityChangeIndex); bw.Write(RadiusChangeIndex); bw.Write(ObjExtentID); bw.Write(Unknown13); bw.Write(Unknown14); bw.Write(Unknown15); bw.Write(IsAntiLight); }
public override void WriteToStream(Stream mstream, short ParsingRule, ThingDb.Thing thing) { NoxBinaryWriter bw = new NoxBinaryWriter(mstream, CryptApi.NoxCryptFormat.NONE); bw.Write(SizeX); bw.Write(SizeY); bw.WriteColor(EdgeColor); bw.WriteColor(BackColor); bw.Write(UnkInt1); bw.WriteScriptEvent(ScriptOnPressed); bw.WriteScriptEvent(ScriptOnReleased); bw.WriteScriptEvent(ScriptOnCollided); bw.Write(AllowedObjClass); bw.Write(IgnoredObjClass); bw.Write(AllowedTeamID); bw.Write(IgnoredTeamID); bw.Write(TriggerState); bw.Write(Unk7); bw.Write(UnkInt2); }
public override void WriteToStream(Stream mstream, short ParsingRule, ThingDb.Thing thing) { NoxBinaryWriter bw = new NoxBinaryWriter(mstream, CryptApi.NoxCryptFormat.NONE); bw.Write(Unknown2); bw.Write(Unknown7); bw.Write(Unknown8); bw.Write(LightRadius); bw.Write(NumOfColors); bw.Write(LightIntensity); bw.Write(R); bw.Write(R2); bw.Write(UnknownR); bw.Write(UnknownR2); bw.Write(G); bw.Write(G2); bw.Write(UnknownG); bw.Write(UnknownG2); bw.Write(B); bw.Write(B2); bw.Write(UnknownB); bw.Write(UnknownB2); bw.Write(UnknownVal); //bw.Write(Unknown5); //bw.Write(Unknown6); bw.Write(ChangeIntensity); /* * bw.Write(R1); * bw.Write(G1); * bw.Write(B1); * bw.Write(R2); * bw.Write(G2); * bw.Write(B2); * */ bw.WriteColor(Color1); bw.WriteColor(Color2); bw.WriteColor(Color3); bw.WriteColor(Color4); bw.WriteColor(Color5); bw.WriteColor(Color6); bw.WriteColor(Color7); bw.WriteColor(Color8); bw.WriteColor(Color9); bw.WriteColor(Color10); bw.Write(Unknown3); bw.Write(ChangeIntensitySingle); bw.Write(Unknown10); bw.Write(MaxRadius2); bw.Write(MinRadius2); bw.Write(MaxRadius3); bw.Write(MinRadius3); bw.Write(MaxRadius4); bw.Write(MinRadius4); bw.Write(MaxRadius5); bw.Write(MinRadius5); bw.Write(MaxRadius6); bw.Write(MinRadius6); bw.Write(MaxRadius7); bw.Write(MinRadius7); bw.Write(MaxRadius8); bw.Write(MinRadius8); bw.Write(MaxRadius9); bw.Write(MinRadius9); bw.Write(MaxRadius10); bw.Write(MinRadius10); bw.Write(Unknown30); bw.Write(PulseSpeed); bw.Write(Unknown11); bw.Write(PulseSpeedSingle); bw.Write(Unknown4); bw.Write(Unknown80); bw.Write(type); bw.Write(Unknown9); }