Ejemplo n.º 1
0
 public static void SetCachedLocation(int dialogID, int x, int y)
 {
     GServerGump.LocationCacheEntry locationCacheEntry = GServerGump.m_LocationCache[(object)dialogID] as GServerGump.LocationCacheEntry;
     if (locationCacheEntry == null)
     {
         GServerGump.m_LocationCache[(object)dialogID] = (object)(locationCacheEntry = new GServerGump.LocationCacheEntry(dialogID));
     }
     locationCacheEntry.m_xOffset = x;
     locationCacheEntry.m_yOffset = y;
 }
Ejemplo n.º 2
0
 public static void GetCachedLocation(int dialogID, ref int x, ref int y)
 {
     GServerGump.LocationCacheEntry locationCacheEntry = GServerGump.m_LocationCache[(object)dialogID] as GServerGump.LocationCacheEntry;
     if (locationCacheEntry == null)
     {
         return;
     }
     x = locationCacheEntry.m_xOffset;
     y = locationCacheEntry.m_yOffset;
     GServerGump.m_LocationCache.Remove((object)dialogID);
 }