Jump to: navigation, search

Difference between revisions of "CUSTOMIZING"


Line 43: Line 43:
 
==Customizeable Methods==
 
==Customizeable Methods==
 
===AddSystemAssemblies===
 
===AddSystemAssemblies===
Gives the possibility to define assemblies (by their name) which must be added to the UBIK Compiler every time it is asked to compile either the customizing or debugging code in the debugging test environment (Whobert).
+
Gives the possibility to define assemblies (by their name) which must be added to the UBIK Compiler every time it is asked to compile either the customizing or debugging code in the debugging test environment (Whobert) {{Version/ServerSince|2.5.0}}.
 +
 
 +
''Example:''
 +
<syntaxhighlight lang="csharp">
 +
public override System.String[] AddSystemAssemblies()
 +
{
 +
List<string> assemblies = new List<string>();
 +
string[] baseAssemblies = base.AddSystemAssemblies();
 +
if (baseAssemblies != null)
 +
{
 +
assemblies.AddRange(baseAssemblies);
 +
}
 +
assemblies.Add( "System.Data" );
 +
return assemblies.ToArray();
 +
}
 +
</syntaxhighlight>
  
 
[[Category:Metaclasses|CUSTOMIZING]]
 
[[Category:Metaclasses|CUSTOMIZING]]

Revision as of 12:11, 3 July 2015

IC METACLASS.gif Customizing
Name CUSTOMIZING
Namespace System.Main.Base
Internal Name SystemObjects.CUSTOMIZINGVERSION
TypeString {{{typestring}}}
RuntimeType {{{runtimetype}}}
Purpose Manage customizing versions
Version 2+


Basics

The Customizing object gives information about one version of the compiled customized assemblies. Every time the user executes a compilation (both local and released) a new instance of customizing is created.

Properties

Version number

The version number of a customizing consits of 3 numbers:
Major.Minor.Revision
Major and Minor are linked to Major and Minor of the UBIK Kernel version the customizing was compiled with. The Revision is increased by 1 with every compilation.


Kernel Version

The kernel Version number for which the current customizing was compiled for


Comment

Additional comment describing the customizing.


Assembly and AssemblyUI File

Gives information about the filenames of the assemblies of the customizing.


Released

Indicates as the customizing is currently the released one. Only one customizing can be released per Kernel Version. Setting it to true will mark all other customizings (with the same Kernel Version) as not released.


Original Version

The Customizing Version which was active once the new once was compiled.


Customizeable Methods

AddSystemAssemblies

Gives the possibility to define assemblies (by their name) which must be added to the UBIK Compiler every time it is asked to compile either the customizing or debugging code in the debugging test environment (Whobert) .

Example:

public override System.String[] AddSystemAssemblies()
{
        List<string> assemblies = new List<string>();
        string[] baseAssemblies = base.AddSystemAssemblies();
        if (baseAssemblies != null)
        {
                assemblies.AddRange(baseAssemblies);
        }
        assemblies.Add( "System.Data" );
        return assemblies.ToArray();
}