Reads an object for a group
| 724 | |
| 725 | // Reads an object for a group |
| 726 | void ReadGroupObject(CFILE *ifile, object *objp) { |
| 727 | objp->type = cf_ReadByte(ifile); |
| 728 | objp->id = cf_ReadShort(ifile); |
| 729 | objp->flags = cf_ReadInt(ifile); |
| 730 | |
| 731 | if (objp->type == OBJ_DOOR) |
| 732 | objp->shields = cf_ReadShort(ifile); |
| 733 | |
| 734 | objp->roomnum = cf_ReadInt(ifile); |
| 735 | cf_ReadVector(ifile, &objp->pos); |
| 736 | cf_ReadMatrix(ifile, &objp->orient); |
| 737 | |
| 738 | objp->contains_type = cf_ReadByte(ifile); |
| 739 | objp->contains_id = cf_ReadByte(ifile); |
| 740 | objp->contains_count = cf_ReadByte(ifile); |
| 741 | |
| 742 | objp->lifeleft = cf_ReadFloat(ifile); |
| 743 | } |
| 744 | |
| 745 | void ReadGroupTrigger(CFILE *ifile, trigger *tp) { |
| 746 | tp->roomnum = cf_ReadShort(ifile); |
no test coverage detected