Shadowrun: Awakened 29 September 2011 - Build 871
UScriptSetRoutine.cs
Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 
00006 namespace RoutineAnalyzer
00007 {
00011     class UScriptSetRoutine : RoutineBase
00012     {
00017         public UScriptSetRoutine(string sql)
00018             : base(sql)
00019         {
00020         }
00021 
00026         public override string GetDeclaration()
00027         {
00028             StringBuilder builder = new StringBuilder();
00029             builder.Append("dllimport final function ");
00030             builder.Append(ParseHelper.ConvertUnderscoreToCamelCase(_name));
00031             builder.Append("(");
00032             foreach (RoutineParamBase param in _params)
00033             {
00034                 builder.Append(param.GetDeclaration());
00035                 if (param != _params.Last<RoutineParamBase>())
00036                     builder.Append(", ");
00037             }
00038 
00039             builder.Append(")");
00040             return builder.ToString();
00041         }
00042 
00047         public override string GetCode()
00048         {
00049             return "";            
00050         }
00051 
00058         protected override RoutineParamBase CreateRoutineParam(string sql, int index)
00059         {
00060             return new UScriptSetRoutineParam(sql, index);
00061         }
00062     }
00063 }

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net