hybridize suggested approaches with older code style, passing along either a matrix or a null.

for network transmission purposes, send which along as a bool
This commit is contained in:
AzaezelX 2024-02-03 22:35:41 -06:00
parent b12cd00b74
commit 846cec8dff
3 changed files with 52 additions and 70 deletions

View file

@ -110,11 +110,11 @@ class SimSoundAssetEvent : public NetEvent
private:
AssetPtr<SoundAsset> mAsset;
MatrixF mTransform;
bool mIs3D;
bool sentTransform;
public:
typedef NetEvent Parent;
SimSoundAssetEvent(StringTableEntry assetId = StringTable->EmptyString(), const MatrixF& mat = MatrixF::Identity);
SimSoundAssetEvent(StringTableEntry assetId = StringTable->EmptyString(), const MatrixF* mat = NULL);
void pack(NetConnection*, BitStream* bstream);
void write(NetConnection*, BitStream* bstream);
void unpack(NetConnection*, BitStream* bstream);