Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -134,14 +134,10 @@ namespace Server.Engines.BulkOrders
|
|||
if (m_Cache == null)
|
||||
m_Cache = new Dictionary<string, Dictionary<string, SmallBulkEntry[]>>();
|
||||
|
||||
Dictionary<string, SmallBulkEntry[]> table = null;
|
||||
|
||||
if (!m_Cache.TryGetValue(type, out table))
|
||||
if (!m_Cache.TryGetValue( type, out Dictionary<string, SmallBulkEntry[]> table ))
|
||||
m_Cache[type] = table = new Dictionary<string, SmallBulkEntry[]>();
|
||||
|
||||
SmallBulkEntry[] entries = null;
|
||||
|
||||
if (!table.TryGetValue(name, out entries))
|
||||
if (!table.TryGetValue( name, out SmallBulkEntry[] entries ))
|
||||
table[name] = entries = SmallBulkEntry.LoadEntries(type, name);
|
||||
|
||||
return entries;
|
||||
|
|
@ -186,4 +182,4 @@ namespace Server.Engines.BulkOrders
|
|||
writer.Write( m_Details.Graphic );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue