<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — hook for when map position restored after timeout]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=723</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=723&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in hook for when map position restored after timeout.]]></description>
		<lastBuildDate>Wed, 13 Dec 2017 01:06:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: hook for when map position restored after timeout]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3141#p3141</link>
			<description><![CDATA[<p>woo hoo, thankyou.<br />PS I was getting worried that I was doing more wrong things. <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (kingsleyz)]]></author>
			<pubDate>Wed, 13 Dec 2017 01:06:38 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3141#p3141</guid>
		</item>
		<item>
			<title><![CDATA[Re: hook for when map position restored after timeout]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3135#p3135</link>
			<description><![CDATA[<p>Hello.</p><p>Thanks for the suggestion.<br />I think this is a very useful hook.<br />The next version of Online Maps will contain this.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 12 Dec 2017 00:17:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3135#p3135</guid>
		</item>
		<item>
			<title><![CDATA[hook for when map position restored after timeout]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3133#p3133</link>
			<description><![CDATA[<p>Hi Alex, at risk of showing my ignorance (again).<br />Is there a way to call a routine after the map position has been moved by a Restore After (sec) timeout.</p><p>If not I have added a crude one:</p><p>OnlineMapsLocationServiceBase: approx line&nbsp; 40<br />&nbsp; &nbsp; /// &lt;summary&gt;<br />&nbsp; &nbsp; /// This event called after map position restored when timeout &quot;Restore After&quot; expires<br />&nbsp; &nbsp; /// &lt;/summary&gt;<br />&nbsp; &nbsp; public Action OnPositionRestored; // added 4 lines</p><p>OnlineMapsLocationServiceBase: approx line 397, <br />after &quot;restore after&quot; ticks&nbsp; ... <br />_allowUpdatePosition = true;<br /> UpdatePosition();<br /> OnPositionRestored(); //added 1 line</p><p>and for reference: used by subscription<br />OnlineMapsLocationServiceBase.baseInstance.OnPositionRestored += OnPositionRestored; </p><p>public void OnPositionRestored()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; //Debug.Log(&quot;Position restored&quot;);<br />}</p><p>Have I done this correctly ?</p>]]></description>
			<author><![CDATA[null@example.com (kingsleyz)]]></author>
			<pubDate>Sun, 10 Dec 2017 23:01:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3133#p3133</guid>
		</item>
	</channel>
</rss>
