(buffer: ByteBuffer, beginPos: number)
| 205 | } |
| 206 | |
| 207 | public setup_beforeAdd(buffer: ByteBuffer, beginPos: number): void { |
| 208 | super.setup_beforeAdd(buffer, beginPos); |
| 209 | |
| 210 | buffer.seek(beginPos, 5); |
| 211 | |
| 212 | if (buffer.readBool()) { |
| 213 | this.color = buffer.readS(); |
| 214 | } |
| 215 | this.flip = buffer.readByte(); |
| 216 | |
| 217 | const fillMethodValue = buffer.readByte(); |
| 218 | if (this._image) { |
| 219 | this._image.fillMethod = fillMethodValue; |
| 220 | if (this._image.fillMethod !== EFillMethod.None) { |
| 221 | this._image.fillOrigin = buffer.readByte(); |
| 222 | this._image.fillClockwise = buffer.readBool(); |
| 223 | this._image.fillAmount = buffer.getFloat32(); |
| 224 | } |
| 225 | } else if (fillMethodValue !== EFillMethod.None) { |
| 226 | // Skip bytes if _image not ready |
| 227 | buffer.readByte(); // fillOrigin |
| 228 | buffer.readBool(); // fillClockwise |
| 229 | buffer.getFloat32(); // fillAmount |
| 230 | } |
| 231 | } |
| 232 | } |
nothing calls this directly
no test coverage detected