{"id":169981,"date":"2013-02-19T20:11:04","date_gmt":"2013-02-19T16:11:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=169981"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=169981","title":{"rendered":"<span class=\"post_title\">\u041a\u043e\u043b\u043e\u0431\u043e\u043a \u0432 \u0433\u043e\u0441\u0442\u044f\u0445 \u0443 Windows 8: \u0434\u043d\u0435\u0432\u043d\u0438\u043a\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (\u0447\u0430\u0441\u0442\u044c 1)<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u043c\u044b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b &quot;<a href=\"http:\/\/habrahabr.ru\/post\/167613\/\">\u041a\u043e\u043b\u043e\u0431\u043e\u043a \u0432 \u0433\u043e\u0441\u0442\u044f\u0445 \u0443 Windows 8: \u0434\u043d\u0435\u0432\u043d\u0438\u043a\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435)<\/a>&quot;, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0430\u0448\u0435\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b, \u0432 \u0442\u043e\u043c \u0432\u0438\u0434\u0435 \u043a\u0430\u043a \u043c\u044b \u0435\u0435 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b\u0438.<\/p>\n<h4>\u041f\u0435\u0440\u0432\u044b\u0435 \u044d\u0441\u043a\u0438\u0437\u044b<\/h4>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043e\u0442 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430. \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0442 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/39f\/133\/1a7\/39f1331a7d512ab427ce4e38bcd49fa4.png\"\/><br \/>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u0410\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 BaseGame<\/h4>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u0431\u0435\u0440\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u043e\u0431\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u0438\u0433\u0440\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u043b\u043e\u0433\u0438\u043a\u0443 \u0438 \u0444\u0438\u0437\u0438\u043a\u0443 \u0438\u0433\u0440\u044b.  <\/p>\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt;  \/\/\/ Describes an abstract game  \/\/\/ &lt;\/summary&gt;  public abstract class BaseGame:DisposeSupport     {         \/\/\/ &lt;summary&gt;         \/\/\/ The game Logic         \/\/\/ &lt;\/summary&gt;         protected abstract ILogic Logic { get; }         \/\/\/ &lt;summary&gt;         \/\/\/ The game Physics         \/\/\/ &lt;\/summary&gt;         protected abstract IPhysics Physics { get; }         \/\/\/ &lt;summary&gt;         \/\/\/ Initialize the game         \/\/\/ &lt;\/summary&gt;         public void Initialize(){}         \/\/\/ &lt;summary&gt;         \/\/\/ Start the new game         \/\/\/ &lt;\/summary&gt;         public void StartNewGame(){}         \/\/\/ &lt;summary&gt;         \/\/\/ Activate the game         \/\/\/ &lt;\/summary&gt;         public void ActivateGame(){}         \/\/\/ &lt;summary&gt;         \/\/\/ Pause on game         \/\/\/ &lt;\/summary&gt;         public void Pause(){}         \/\/\/ &lt;summary&gt;         \/\/\/ Restart the game         \/\/\/ &lt;\/summary&gt;         public void Restart(){}         \/\/\/ &lt;summary&gt;         \/\/\/ Resume the game         \/\/\/ &lt;\/summary&gt;         public void Resume(){}         \/\/\/ &lt;summary&gt;         \/\/\/ Exit the game         \/\/\/ &lt;\/summary&gt;         public void Exit(){}         public event Action Win;         public event Action GameOver;         public event Action Lose;       } <\/code><\/pre>\n<p>  \u0416\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b37\/79c\/a7a\/b3779ca7aaf69fe46b1b983921da0c3b.png\"\/><\/p>\n<h4>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>  \u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u0438\u0433\u0440\u0435. \u0421\u0432\u044f\u0437\u044c \u0441 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u043e\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0433\u0440\u044b.<br \/>  \u0417\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 IRenderer, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0440\u0435\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432:  <\/p>\n<ul>\n<li><b>Initialize<\/b> \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430,<\/li>\n<li><b>Render<\/b> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0430\u0434\u0440\u0430,<\/li>\n<li><b>SizeChanged <\/b> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043c\u0435\u043d\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u044d\u043a\u0440\u0430\u043d\u0430, \u0438 \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f.<\/li>\n<\/ul>\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt;     \/\/\/ Describes a renderer class     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;typeparam name=&quot;TInit&quot;&gt;Type that used for method Initialize parameter&lt;\/typeparam&gt;     \/\/\/ &lt;typeparam name=&quot;TRender&quot;&gt;Type that used for methods Render and ScreenSizeChanged parameters&lt;\/typeparam&gt;     public interface IRenderer&lt;TInit, TRender&gt;: IDisposable     {         \/\/\/ &lt;summary&gt;         \/\/\/ On initialize a device         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;param name=&quot;initParameter&quot;&gt;Initialize parameter&lt;\/param&gt;         void Initialize(TInit initParameter);         \/\/\/ &lt;summary&gt;         \/\/\/ On render per frame         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;param name=&quot;renderParameter&quot;&gt;Render parameter&lt;\/param&gt;         void Render(TRender renderParameter);         \/\/\/ &lt;summary&gt;         \/\/\/ On screen size changed         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;param name=&quot;renderParameter&quot;&gt;Render parameter&lt;\/param&gt;         void ScreenSizeChanged(TRender renderParameter);     } <\/code><\/pre>\n<p>   \u0426\u0438\u043a\u043b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438: <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/dd2\/b72\/3f3\/dd2b723f3828a6f7d4a8f0e986b3800c.png\"\/><br \/>   <b>IRenderer <\/b> \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 IDisposable, \u0447\u0442\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u043e \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u044e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0412 \u043d\u0430\u0448\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043f\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044e \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442\u0441\u044f \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 Component \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 SharpDX, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0435\u0440\u0435\u0434 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u0435\u043c, \u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e IDisposable.<\/p>\n<h4>\u041b\u043e\u0433\u0438\u043a\u0430<\/h4>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c ILogic  <\/p>\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt;     \/\/\/ Describes a game logic     \/\/\/ &lt;\/summary&gt;     public interface ILogic     {         \/\/\/ &lt;summary&gt;         \/\/\/ Start game          \/\/\/ &lt;\/summary&gt;         void StartGame();         \/\/\/ &lt;summary&gt;         \/\/\/ Stop game          \/\/\/ &lt;\/summary&gt;         void StopGame();         \/\/\/ &lt;summary&gt;         \/\/\/ Pause game          \/\/\/ &lt;\/summary&gt;         void PauseGame();         \/\/\/ &lt;summary&gt;         \/\/\/ Resume game          \/\/\/ &lt;\/summary&gt;         void ResumeGame();         \/\/\/ &lt;summary&gt;         \/\/\/ Fire game event          \/\/\/ &lt;\/summary&gt;         void FireEvent(IGameEvent @event);         \/\/\/ &lt;summary&gt;         \/\/\/ Win game event          \/\/\/ &lt;\/summary&gt;         event Action Win;         \/\/\/ &lt;summary&gt;         \/\/\/ Lose game event          \/\/\/ &lt;\/summary&gt;         event Action Lose;         \/\/\/ &lt;summary&gt;         \/\/\/ Delete game object event          \/\/\/ &lt;\/summary&gt;         event Action&lt;string&gt; ObjectDeleted;         \/\/\/ &lt;summary&gt;         \/\/\/Character moved event          \/\/\/ &lt;\/summary&gt;         event Action&lt;string,float,float,float&gt; CharacterMoved;         \/\/\/ &lt;summary&gt;         \/\/\/Character moved by path event          \/\/\/ &lt;\/summary&gt;         event Action&lt;string, IList&lt;PathData&gt;&gt; CharacterMovedPath;         \/\/\/ &lt;summary&gt;         \/\/\/Character patrol by path event          \/\/\/ &lt;\/summary&gt;         event Action&lt;string, IList&lt;PathData&gt;&gt; CharacterPatrolPath;         \/\/\/ &lt;summary&gt;         \/\/\/Character patrol event         \/\/\/ &lt;\/summary&gt;         event Action&lt;string, float, float, float&gt; CharacterPatrol;         \/\/\/ &lt;summary&gt;         \/\/\/Character moved to object event         \/\/\/ &lt;\/summary&gt;         event Action&lt;string, string, float&gt; CharacterMovedToObject;         \/\/\/ &lt;summary&gt;         \/\/\/Character in chase for object event         \/\/\/ &lt;\/summary&gt;         event Action&lt;string, string, float&gt; CharacterChase;         \/\/\/ &lt;summary&gt;         \/\/\/ watch if the one object look at another;         \/\/\/ &lt;\/summary&gt;         event Action&lt;string, string&gt; WatchedLook;          \/\/\/ &lt;summary&gt;         \/\/\/ watch the distance between two objects;         \/\/\/ &lt;\/summary&gt;         event Action&lt;string, string, float&gt; WatchedDistance;         \/\/\/ &lt;summary&gt;         \/\/\/ character stop;         \/\/\/ &lt;\/summary&gt;         event Action&lt;string&gt; ActionStopped;         \/\/\/ &lt;summary&gt;         \/\/\/The rules factory         \/\/\/ &lt;\/summary&gt;         IRuleFactory RuleFactory { get; }      } <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0438 \u043f\u043e\u0442\u043e\u043c \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f Win, Lose \u0438\u043b\u0438 Game Over, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0438\u0433\u0440\u0443.<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0446\u0438\u043a\u043b \u043b\u043e\u0433\u0438\u043a\u0438 \u0438\u0433\u0440\u044b:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/9d5\/1a0\/3ac\/9d51a03ac9615b86a76852fa9e9fbe8c.png\"\/><\/p>\n<h4>\u0424\u0438\u0437\u0438\u043a\u0430 <\/h4>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 IPhysics   <\/p>\n<pre><code class=\"cs\">public interface IPhysics     {         \/\/\/ &lt;summary&gt;         \/\/\/ add object to simulation         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;param name=&quot;obj&quot;&gt;object&lt;\/param&gt;         void AddObject(IObject obj);         \/\/\/ &lt;summary&gt;         \/\/\/ remove object from simulation         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;param name=&quot;obj&quot;&gt;object&lt;\/param&gt;         void RemoveObject(IObject obj);         \/\/\/ &lt;summary&gt;         \/\/\/ simulate world on specified time after start         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;param name=&quot;time&quot;&gt;seconds&lt;\/param&gt;         void Simulate(float time);         \/\/\/ &lt;summary&gt;         \/\/\/ signal that initialization starts         \/\/\/ &lt;\/summary&gt;         void BeginInitialization();         \/\/\/ &lt;summary&gt;         \/\/\/ signal that initialization included adding of objects is finished         \/\/\/ &lt;\/summary&gt;         void EndInitialization();         \/\/\/ &lt;summary&gt;         \/\/\/ getting movement observer for observing different events related to movement of  objects         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;returns&gt;moevement observer&lt;\/returns&gt;         IMovementObserver GetMovementObserver();         \/\/\/ &lt;summary&gt;         \/\/\/ get object factory         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;returns&gt;getting object factory&lt;\/returns&gt;         IObjectFactory GetObjectFactory();          } <\/code><\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0444\u0438\u0437\u0438\u043a\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, <br \/>  \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043c\u0438\u0440\u0430 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439 <br \/>  \u043a\u0430\u0441\u0430\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0438\u0436\u0435   <\/p>\n<pre><code class=\"cs\">public interface IObject     {         \/\/\/ &lt;summary&gt;         \/\/\/ getting transformation matrix of object         \/\/\/ &lt;\/summary&gt;         \/\/\/ &lt;returns&gt;matrix&lt;\/returns&gt;         Matrix GetTransform();         float X { get; set; }         float Y { get; set; }         float Z { get; set; }     } <\/code><\/pre>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 <br \/>  \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043c\u0438\u0440\u0430.<\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434\u044b:<\/h4>\n<p>  \u0425\u043e\u0442\u0438\u043c \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 DirectX \u0438 \u0441\u0430\u043c\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0438\u0433\u0440 \u2014 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0438 \u043d\u043e\u0432\u0430\u044f \u0434\u043b\u044f \u043d\u0430\u0441 \u0441\u0444\u0435\u0440\u0430.<\/p>\n<p>  \u041f\u043e C# 5.0 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043e\u0434 Windows Store \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0432\u043e\u0442 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:  <\/p>\n<ul>\n<li> \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 .Net;<\/li>\n<li>\u043d\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0435 (\u0442\u0443\u0442 \u043d\u0435\u0442\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043b\u043e\u0445\u043e\u0433\u043e, \u0438\u043d\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u043e\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439); <\/li>\n<li>\u043d\u0435\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0434\u043b\u044f .Net 4.0 \u043a\u043b\u0430\u0441\u0441\u043e\u0432; <\/li>\n<li> \u0432\u043d\u0435\u0441\u0435\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u043e\u0432 \u0438 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0435\u0439;<\/li>\n<li>\u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f Xaml \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043e\u0442 WPF;<\/li>\n<li>\u0447\u0442\u043e\u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0434 Windows Store \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0441\u0440\u0435\u0434\u0435 Windows 8.<\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/169981\/\"> http:\/\/habrahabr.ru\/post\/169981\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u043c\u044b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b &quot;<a href=\"http:\/\/habrahabr.ru\/post\/167613\/\">\u041a\u043e\u043b\u043e\u0431\u043e\u043a \u0432 \u0433\u043e\u0441\u0442\u044f\u0445 \u0443 Windows 8: \u0434\u043d\u0435\u0432\u043d\u0438\u043a\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435)<\/a>&quot;, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0430\u0448\u0435\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b, \u0432 \u0442\u043e\u043c \u0432\u0438\u0434\u0435 \u043a\u0430\u043a \u043c\u044b \u0435\u0435 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b\u0438.<\/p>\n<h4>\u041f\u0435\u0440\u0432\u044b\u0435 \u044d\u0441\u043a\u0438\u0437\u044b<\/h4>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043e\u0442 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430. \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0442 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/39f\/133\/1a7\/39f1331a7d512ab427ce4e38bcd49fa4.png\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-169981","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/169981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169981"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/169981\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}