internal override void Write(ResourceWriter writer) { writer.WriteInt32(Field04); writer.WriteInt32(Field08); writer.WriteInt16(Field0C); writer.WriteSingle(Field10); writer.WriteSingle(Field14); writer.WriteSingle(Field18); writer.WriteInt32(Field1C); writer.WriteInt16(Field20); writer.WriteSingle(Field24); writer.WriteSingle(Field28); writer.WriteSingle(Field2C); writer.WriteByte(Field00); }
internal override void Write(ResourceWriter writer) { writer.WriteInt16(( short )TargetKind); writer.WriteInt32(TargetId); writer.WriteStringWithHash(Version, TargetName, true); writer.WriteResourceList(Layers); }
internal override void Write(ResourceWriter writer) { writer.WriteString(Name); writer.WriteInt16(( short )Format); writer.WriteInt32(Data.Length); writer.WriteBytes(Data); writer.WriteByte(Field1C); writer.WriteByte(Field1D); writer.WriteByte(Field1E); writer.WriteByte(Field1F); }
internal override void Write(ResourceWriter writer) { writer.WriteInt32(Field140); writer.WriteSingle(Field13C); writer.WriteSingle(Field138); writer.WriteSingle(Field134); writer.WriteSingle(Field130); writer.WriteInt32(Entry1List.Count); writer.WriteInt32(Entry2List.Count); writer.WriteInt32(Entry3List.Count); foreach (var entry in Entry1List) { writer.WriteSingle(entry.Field34); writer.WriteSingle(entry.Field38); if (Version > 0x1104120) { writer.WriteSingle(entry.Field3C); writer.WriteSingle(entry.Field40); } if (entry.NodeName != null) { writer.WriteBoolean(true); writer.WriteStringWithHash(Version, entry.NodeName); } else { writer.WriteBoolean(false); writer.WriteSingle(entry.Field10); writer.WriteSingle(entry.Field08); writer.WriteSingle(entry.Field04); } } foreach (var entry in Entry2List) { writer.WriteInt16(entry.Field94); if (entry.Field94 == 0) { writer.WriteSingle(entry.Field84); } else if (entry.Field94 == 1) { writer.WriteSingle(entry.Field84); writer.WriteSingle(entry.Field88); } writer.WriteMatrix4x4(entry.Field8C); if (entry.NodeName != null) { writer.WriteBoolean(true); writer.WriteStringWithHash(Version, entry.NodeName); } else { writer.WriteBoolean(false); } } foreach (var entry in Entry3List) { writer.WriteSingle(entry.Field00); writer.WriteSingle(entry.Field04); if (Version <= 0x1104120) { writer.WriteInt16(entry.Field0C); writer.WriteInt16(entry.Field0E); } else { writer.WriteSingle(entry.Field08); writer.WriteInt16(entry.Field0C); writer.WriteInt16(entry.Field0E); } } }