Kaynağa Gözat

set typehint for spawners to the spawndatablock

AzaezelX 2 yıl önce
ebeveyn
işleme
361ea5286e
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      Engine/source/T3D/missionMarker.h

+ 2 - 0
Engine/source/T3D/missionMarker.h

@@ -166,6 +166,8 @@ class SpawnSphere : public MissionMarker
       bool     mAutoSpawn;
       bool     mSpawnTransform;
 
+      /// returns the datablock spawned for this object
+      StringTableEntry getTypeHint() const override { return (mSpawnDataBlock.isNotEmpty()) ? mSpawnDataBlock.c_str() : StringTable->EmptyString(); };
       // Radius/weight info
       F32      mRadius;
       F32      mSphereWeight;