mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Updated CGTeleport and new CGMonolith / CGSubterraneanGate / CGWhirlpool
Now CGTeleport is not publicly available handler, but generic class for teleport channels usage. Teleport channels are stored as part of information about the map.
This commit is contained in:
		| @@ -432,6 +432,7 @@ public: | ||||
|  | ||||
| 	//Helper lists | ||||
| 	std::vector< ConstTransitivePtr<CGHeroInstance> > heroesOnMap; | ||||
| 	std::map<TeleportChannelID, shared_ptr<TeleportChannel> > teleportChannels; | ||||
|  | ||||
| 	/// associative list to identify which hero/creature id belongs to which object id(index for objects) | ||||
| 	std::map<si32, ObjectInstanceID> questIdentifierToId; | ||||
| @@ -499,11 +500,9 @@ public: | ||||
| 		} | ||||
|  | ||||
| 		h & objects; | ||||
| 		h & heroesOnMap & towns & artInstances; | ||||
| 		h & heroesOnMap & teleportChannels & towns & artInstances; | ||||
|  | ||||
| 		// static members | ||||
| 		h & CGTeleport::objs; | ||||
| 		h & CGTeleport::gates; | ||||
| 		h & CGKeys::playerKeyMap; | ||||
| 		h & CGMagi::eyelist; | ||||
| 		h & CGObelisk::obeliskCount & CGObelisk::visited; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user