In this video we cover the code necessary to allow region servers to register with the world server. We cover the NHibernate class, mapping, and messaging to pass what area the region server covers and how to respond to the successful registration with the region info.

  • Create and code the RegionRecord
  • Create and code the RegionRecordMap
  • Create the HandleServerRegistration Handler
  • Create the RegionInfoOperation
  • Update the world server to handle the registration
  • Update the region server to send the RegionInfo
  • Update the Region database table and create the first RegionInfo

Here is the XML used in the video:
<?xml version="1.0" encoding="Windows-1252"?>
<ArrayOfPositionData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PositionData>
<X>-100</X>
<Y>0</Y>
<Z>-100</Z>
<Heading>0</Heading>
</PositionData>
<PositionData>
<X>-100</X>
<Y>0</Y>
<Z>1900</Z>
<Heading>0</Heading>
</PositionData>
<PositionData>
<X>1900</X>
<Y>0</Y>
<Z>1900</Z>
<Heading>0</Heading>
</PositionData>
<PositionData>
<X>1900</X>
<Y>0</Y>
<Z>-100</Z>
<Heading>0</Heading>
</PositionData>
</ArrayOfPositionData>


Want the source code? Sign Up as a member today.