diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-24 12:14:34 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-24 12:14:34 +0100 |
commit | b69ac328c06ca77fb4c692f15b0ecc5d4246ec72 (patch) | |
tree | 50fb81d24e7849bed22b1acf04cad62f9b514450 /source/cEntity.h | |
parent | Encapsulated cWorld functions needed in cWorldStorage into an interface, so that cWorldStorage can actually be used outside of MC-Server (such as storage conversion tools and chunk analyzers) (diff) | |
download | cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.gz cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.bz2 cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.lz cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.xz cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.zst cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cEntity.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/cEntity.h b/source/cEntity.h index 179af4b17..1b26f46be 100644 --- a/source/cEntity.h +++ b/source/cEntity.h @@ -84,9 +84,6 @@ public: //tolua_export int GetChunkY(void) const {return m_ChunkY; }
int GetChunkZ(void) const {return m_ChunkZ; }
- // Can be used only once - to set the initial world after loading. Not to be used for moving to another world!
- void SetWorld( cWorld* a_World ) { ASSERT(m_World == NULL); m_World = a_World; }
-
void SetPosX( const double & a_PosX ); //tolua_export
void SetPosY( const double & a_PosY ); //tolua_export
void SetPosZ( const double & a_PosZ ); //tolua_export
@@ -113,6 +110,7 @@ public: //tolua_export protected:
virtual void Destroyed() {} // Called after the entity has been destroyed
+ void SetWorld( cWorld* a_World ) { m_World = a_World; }
void MoveToCorrectChunk(bool a_bIgnoreOldChunk = false);
friend class cReferenceManager;
|