示例#1
0
        public unsafe ToolboxBuildingProperties()
        {
            this.PropertiesChanged = null;
            GUnitStats *ptr = < Module >.@new(96u);
            GUnitStats *stats;

            try
            {
                if (ptr != null)
                {
                    GBaseString <char> *ptr2 = ptr + 4 / sizeof(GUnitStats);
                    *ptr2 = 0;
                    *(ptr2 + 4) = 0;
                    try
                    {
                        GBaseString <char> *ptr3 = ptr + 12 / sizeof(GUnitStats);
                        *ptr3 = 0;
                        *(ptr3 + 4) = 0;
                        try
                        {
                            GBaseString <char> *ptr4 = ptr + 88 / sizeof(GUnitStats);
                            *ptr4 = 0;
                            *(ptr4 + 4) = 0;
                        }
                        catch
                        {
                            < Module >.___CxxCallUnwindDtor(ldftn(GBaseString <char> .{ dtor }), (void *)(ptr + 12 / sizeof(GUnitStats)));
                            throw;
                        }
        public unsafe override bool PreFilterMessage(ref Message m)
        {
            GBaseString <char> gBaseString <char> = 0;

            *(ref gBaseString <char> +4) = 0;
            try
            {
                < Module >.GBaseString <char> .Format(ref gBaseString <char>, (sbyte *)(& < Module >.?? _C@_0P@DFNMEEBH@Outer?5HWND?3?5?$CFd?$AA@), m.HWnd.ToInt32());
		protected unsafe override void SetValue(string value)
		{
			GBaseString<wchar_t> gBaseString<wchar_t>;
			GBaseString<wchar_t>* ptr = <Module>.GBaseString<wchar_t>.{ctor}(ref gBaseString<wchar_t>, value);
			bool flag;
			try
			{
				flag = (((<Module>.GBaseString<wchar_t>.Compare(this.Var, ptr, false) != 0) ? 1 : 0) != 0);
			}
			catch
			{
        protected unsafe virtual void SetValue(string value)
        {
            GBaseString <char>  gBaseString <char>;
            GBaseString <char> *ptr = < Module >.GBaseString <char> .{ ctor } (ref gBaseString <char>, value);
            bool flag;

            try
            {
                flag = (((< Module >.GBaseString <char> .Compare(this.Var, ptr, false) != 0) ? 1 : 0) != 0);
            }
            catch
            {
        private unsafe void UpdateValueFromText()
        {
            * < Module >._errno() = 0;
            GBaseString <char>  gBaseString <char>;
            GBaseString <char> *ptr = < Module >.GBaseString <char> .{ ctor } (ref gBaseString <char>, this.NumericBox.Text);
            long value;

            try
            {
                uint num = (uint)(*ptr);
                value = < Module >._strtoi64((num == 0u) ? < Module >.?EmptyString@?$GBaseString@D@@1PBDB : num, null, 10);
            }
            catch
            {
 protected unsafe override string GetValue()
 {
     switch (*(int *)this.Type)
     {
     case 16:
     case 17:
     {
         void *var = this.Var;
         GBaseString <char>  gBaseString <char>;
         GBaseString <char> *ptr = < Module >.Format(&gBaseString <char>, (sbyte *)(& < Module >.?? _C@_08EJKDHBBI@?$CI?$CFf?$DL?5?$CFf?$CJ?$AA@), (double)(*(float *)var), (double)(*(float *)((byte *)var + 4)));
         string result;
         try
         {
             uint num = (uint)(*(int *)ptr);
             result = new string((sbyte *)((num == 0u) ? < Module >.?EmptyString@?$GBaseString@D@@1PBDB : num));
         }
         catch
         {
             < Module >.___CxxCallUnwindDtor(ldftn(GBaseString <char> .{ dtor }), (void *)(&gBaseString <char>));
示例#7
0
        private unsafe void AddNodes(TreeNodeCollection parent, GResourceStat *rstat)
        {
            int num  = 0;
            int num2 = *(int *)(rstat + 16 / sizeof(GResourceStat));

            if (0 < num2)
            {
                int num3 = 0;
                do
                {
                    int            num4 = num3 + *(int *)(rstat + 12 / sizeof(GResourceStat));
                    GResourceStat *ptr  = num4;
                    uint           num5 = (uint)(*num4);
                    sbyte *        ptr2;
                    if (num5 != 0u)
                    {
                        ptr2 = num5;
                    }
                    else
                    {
                        ptr2 = < Module >.?EmptyString@?$GBaseString@D@@1PBDB;
                    }
                    GBaseString <char>  gBaseString <char>;
                    GBaseString <char> *ptr3 = < Module >.Format(&gBaseString <char>, (sbyte *)(& < Module >.?? _C@_0O@EGKHGIFB@?$CFs?5?$CI?$CF1?42f?5MB?$CJ?$AA@), ptr2, *(ptr + 8) * 9.5367431640625E-07);
                    int index;
                    try
                    {
                        uint   num6 = (uint)(*(int *)ptr3);
                        sbyte *value;
                        if (num6 != 0u)
                        {
                            value = num6;
                        }
                        else
                        {
                            value = < Module >.?EmptyString@?$GBaseString@D@@1PBDB;
                        }
                        index = parent.Add(new TreeNode(new string((sbyte *)value)));
                    }
                    catch
                    {
                        < Module >.___CxxCallUnwindDtor(ldftn(GBaseString <char> .{ dtor }), (void *)(&gBaseString <char>));
示例#8
0
        public unsafe ToolboxCurveEditor(int curvetype, int curveindex, GEditorWorld *world, GBaseString <char> *caption, float minvalue, float maxvalue)
        {
            this.propWorld   = world;
            this.CurveType   = curvetype;
            this.CurveIndex  = curveindex;
            this.FormCaption = caption;
            this.MinValue    = minvalue;
            this.MaxValue    = maxvalue;
            this.InitializeComponent();
            this.CreateCurveEditor();
            uint   num = (uint)(*(int *)this.FormCaption);
            sbyte *value;

            if (num != 0u)
            {
                value = num;
            }
            else
            {
                value = < Module >.?EmptyString@?$GBaseString@D@@1PBDB;
            }
            this.Text = new string((sbyte *)value);
        }
示例#9
0
        public unsafe override ArrayList Expand()
        {
            ArrayList     arrayList     = new ArrayList();
            GArrayHeader *var           = (GArrayHeader *)this.Var;
            float         default_value = 0f;
            float         min_value     = -3.40282347E+38f;
            float         max_value     = 3.40282347E+38f;
            float         step_value    = 0.5f;
            int           num           = 0;
            int           num2          = *(int *)(var + 4 / sizeof(GArrayHeader));

            if (0 < num2)
            {
                do
                {
                    if (num2 > 10)
                    {
                        GBaseString <char>  gBaseString <char>;
                        GBaseString <char> *ptr = < Module >.Format(&gBaseString <char>, (sbyte *)(& < Module >.?? _C@_04OGKJMPGK@?$CF02d?$AA@), num);
                        try
                        {
                            uint   num3 = (uint)(*(int *)ptr);
                            sbyte *value;
                            if (num3 != 0u)
                            {
                                value = num3;
                            }
                            else
                            {
                                value = < Module >.?EmptyString@?$GBaseString@D@@1PBDB;
                            }
                            GClass *type = this.Type;
                            arrayList.Add(PropertyItem.MakeProperty(new string((sbyte *)value), null, *(int *)(type + 52 / sizeof(GClass)), *(int *)(type + 48 / sizeof(GClass)) * num + *(int *)var, default_value, min_value, max_value, step_value));
                        }
                        catch
                        {
                            < Module >.___CxxCallUnwindDtor(ldftn(GBaseString <char> .{ dtor }), (void *)(&gBaseString <char>));