179 {
180 PlayerDeathReason playerDeathReason = new PlayerDeathReason();
181 BitsByte bitsByte = reader.
ReadByte();
182 if (bitsByte[0])
183 {
184 playerDeathReason._sourcePlayerIndex = reader.
ReadInt16();
185 }
186 if (bitsByte[1])
187 {
188 playerDeathReason._sourceNPCIndex = reader.
ReadInt16();
189 }
190 if (bitsByte[2])
191 {
192 playerDeathReason._sourceProjectileLocalIndex = reader.
ReadInt16();
193 }
194 if (bitsByte[3])
195 {
196 playerDeathReason._sourceOtherIndex = reader.
ReadByte();
197 }
198 if (bitsByte[4])
199 {
200 playerDeathReason._sourceProjectileType = reader.
ReadInt16();
201 }
202 if (bitsByte[5])
203 {
204 playerDeathReason._sourceItemType = reader.
ReadInt16();
205 }
206 if (bitsByte[6])
207 {
208 playerDeathReason._sourceItemPrefix = reader.
ReadByte();
209 }
210 if (bitsByte[7])
211 {
212 playerDeathReason._sourceCustomReason = reader.
ReadString();
213 }
214 return playerDeathReason;
215 }
virtual string ReadString()
virtual short ReadInt16()