Difference between revisions of "User:Cogniac"

m
m (Replacing page with '{{Admins}} '''Shard:''' Atlantic Category:Admins')
Line 1: Line 1:
 
{{Admins}}
 
{{Admins}}
 
'''Shard:''' Atlantic
 
'''Shard:''' Atlantic
 
 
'''This part right here, Merl:'''
 
 
bool HaveCoreScriptsDll = true;//needed for project
 
: EnsureDirectory( "Scripts/" );
 
: EnsureDirectory( "Scripts/Output/" );
 
 
: if( m_AdditionalReferences.Count > 0 )
 
: {
 
:: m_AdditionalReferences.Clear();
 
: }
 
 
: List<Assembly> assemblies = new List<Assembly>();
 
 
Assembly assembly = null;//needed for project
 
 
try
 
<br />
 
{
 
: assembly = Assembly.LoadFrom("ShardScripts.dll");
 
}
 
<br />
 
catch (Exception e)
 
<br />
 
{
 
: Console.WriteLine(String.Format("ShardScripts.DLL: {0}", e.Message));
 
: Console.WriteLine("Can't load script library, ShardScripts.DLL!  Proceeding without it.");
 
: HaveCoreScriptsDll = false;
 
}
 
 
if (HaveCoreScriptsDll)
 
<br />
 
{
 
: if (!m_AdditionalReferences.Contains(assembly.Location))
 
: {
 
:: m_AdditionalReferences.Add(assembly.Location);
 
: }
 
: assemblies.Add(assembly);
 
 
: Version CSversion = assembly.GetName().Version;
 
: Console.WriteLine("Using: [{0}] Version {1}.{2}.{3}.{4}", assembly.GetName().Name, CSversion.Major, CSversion.Minor, CSversion.Build, CSversion.Revision);
 
}
 
  
 
[[Category:Admins]]
 
[[Category:Admins]]

Revision as of 22:57, 24 December 2007

Template:Admins Shard: Atlantic