Exemple #1
0
 public async void LoadMoreStore(TYPEGET typeGet,TYPE type=0)
 {
     string lastId = "";
     int marketId = MediateClass.MarketVM.SelectedMarket.MarketId;
     if (typeGet == TYPEGET.MORE)
     {
         if (KiosList.Count != 0)
         {
             if (type == TYPE.OLD)
                 lastId = KiosList.Min(x => x.StoreId).ToString();
             else
                 lastId = KiosList.Max(x => x.StoreId).ToString();
         }
     }
     else
         lastId = "-1";
           
     IDictionary<string, string> param = new Dictionary<string, string>
     {
         {"marketId", marketId.ToString()},
         {"storeId" , lastId},
         {"type" , type.ToString()}
     };
     if(lastId != "")
         await SendData(typeGet, type, param);
 }
        public void AddMessage(string title, string description, TYPE quest,float time)
        {
            CancelInvoke("DisablePanel");
            //AudioSource.PlayClipAtPoint(Clip, Camera.main.transform.position);
            this.gameObject.SetActive(true);

            if (quest == TYPE.Error)
            {
                BackgroundImage.color = ErrorColor;
            }
            if (quest == TYPE.Warning)
            {
                BackgroundImage.color = WarningColor;
            }
            if (quest == TYPE.Access)
            {
                BackgroundImage.color = AccessColor;
            }
            if (quest == TYPE.System)
            {
                BackgroundImage.color = SystemColor;
            }

            Title.text = title;
            Description.text = description;
            Invoke("DisablePanel",time);
        }
Exemple #3
0
        public Uzytkownik(string title, string cmdName, TYPE typ)
        {
            InitializeComponent();

            this.Text = title;
            cmdDodaj.Text = cmdName;

            TrybPracy = typ;
            if (typ == TYPE.NEW)
            {
                comboBox1.SelectedIndex = 0;
            }
            else if (typ == TYPE.VIEW)
            {
                cmdDodaj.Visible = false; cmdAnuluj.Text = "Zamknij";
                comboBox1.Enabled = false;
                txtHaslo.Enabled = false; txtPowtorzHaslo.Enabled = false;

                lstPriv.Enabled = false;
            }
            else if (typ == TYPE.EDIT)
            {
                cmdDodaj.Text = "Zapisz"; cmdAnuluj.Text = "Anuluj";
                txtLogin.Enabled = false; txtImie.Enabled = false;
                txtNazwisko.Enabled = false;

            }
        }
Exemple #4
0
        public static String createStamp(TYPE type)
        {
            String descriptor = DateTime.Now.ToString("dd-MM-yyyy HH.mm.ss");

            switch (type) {
                case TYPE.DEBUG:
                    descriptor += " [DEBUG]: ";
                    break;

                case TYPE.ERROR:
                    descriptor += " [ERROR]: ";
                    break;

                case TYPE.FATAL:
                    descriptor += " [FATAL]: ";
                    break;

                case TYPE.INFO:
                    descriptor += " [INFO]: ";
                    break;

                case TYPE.WARN:
                    descriptor += " [WARN]: ";
                    break;

                default:
                    descriptor = null;
                    break;
            }
            return descriptor;
        }
Exemple #5
0
        public Usterki(int carid, TYPE Tryb)
        {
            InitializeComponent();

            this.CARID = carid;
            this.TrybPracy = Tryb;
        }
 public async void GetCommentOfStore(TYPEGET typeGet, TYPE type=0)
 {
     string lastId = "";
     int storeId = MediateClass.KiotVM.SelectedStore.StoreId;
     if (typeGet == TYPEGET.MORE)
     {
         if (CommentLstOfStore.Count != 0)
         {
             if (type == TYPE.OLD)
                 lastId = CommentLstOfStore.Min(x => x.Id).ToString();
             else
                 lastId = CommentLstOfStore.Max(x => x.Id).ToString();
         }
     }
     else
         lastId = "-1";
     IDictionary<string, string> param = new Dictionary<string, string>
     {
         {"storeId" , storeId.ToString()},
         {"commentId" , lastId},
         {"type" , type.ToString()}
     };
     if(lastId != "")
         await SendData(typeGet, type, param);
 } 
Exemple #7
0
 public Tile(int x, int y, TYPE type)
 {
     _x = x;
     _y = y;
     this.type = type;
     _CompareDel = CompareToX;
 }
Exemple #8
0
 public Tile(int x, int y, TYPE type, Char c)
 {
     _x = x;
     _y = y;
     this.type = type;
     SetCompare(c);
 }
Exemple #9
0
 public LexerToken(string rawString, int startCharIdx, int endCharIdx)
 {
     rawWord = RawWord.new_FromString(rawString);
     this.startCharIdx = startCharIdx;
     this.endCharIdx = endCharIdx;
     tokenType = TYPE.UNCLASSIFIED;
 }
Exemple #10
0
 public AchievementObject (string id, DateTime initVal, DateTime goalVal, double currProgress) {
   this.id = id;
   this.initValDateTime = initVal;
   this.goalValDateTime = goalVal;
   this.type = TYPE.DATETIME;
   //this.currValDateTime = currVal;
 }
Exemple #11
0
        private Entity.Entity[] search(string searchPhrase, TYPE type)
        {

            string scheme = "http://amp.fm/";

            Entity.Entity[] entityList = new Entity.Entity[] {
                new Entity.Entity{ Label = searchPhrase, Term = "search", Scheme = scheme},
                new Entity.Entity{ Label = "Pearl Jam", Term = "pearljam", Scheme = scheme},
                new Entity.Entity{ Label = "FooBar Fighters", Term = "foobarfighters", Scheme = scheme},
                new Entity.Entity{ Label = "Elliotte Smith", Term = "elliottesmith", Scheme = scheme},
            };

            switch (type)
            {
                case TYPE.ARTIST:
                    return entityList;
                    break;
                case TYPE.GENRE:
                    return entityList;
                    break;
                case TYPE.LYRICS:
                    return entityList;
                    break;
                case TYPE.TITLE:
                    return entityList;
                    break;
                default:
                    return entityList;
                    break;
            }
        }
Exemple #12
0
 /// <summary>
 /// 動態改變TYPE
 /// </summary>
 /// <param name="type">Type.</param>
 public void SetScreenPosType(Camera _cam,KZScreenPos.TYPE type)
 {
     _type = type;
     SetCamera(_cam);
     SetVector3 ();
     SetScreenPosition(1,1);
 }
Exemple #13
0
 public Spell(int e_d, int s_r, int s_a, TYPE t)
 {
     effect_damage = e_d;
     spell_range = s_r;
     spell_area = s_a;
     type = t;
 }
Exemple #14
0
 public AchievementObject (string id, string initVal, string goalVal, double currProgress) {
   this.id = id;
   this.initValString = initVal;
   this.goalValString = goalVal;
   this.type = TYPE.STRING;
   //this.currValString = currVal;
 }
Exemple #15
0
 public AchievementObject (string id, bool initVal, bool goalVal, double currProgress) {
   this.id = id;
   this.initValBool = initVal;
   this.goalValBool = goalVal;
   this.type = TYPE.BOOL;
   //this.currValBool = currVal;
 }
Exemple #16
0
	void Enable()
	{
#if UNITY_EDITOR 
		last_type=type;
		GetBox();
		RenewWH();
#endif
	}
Exemple #17
0
	void Start()
	{
		if (type==TYPE.RGBDF && rigidBody == null)
		{
			type=TYPE.TRSPOS;
		
		}
	}
Exemple #18
0
 public void SetScreenPosType(Camera _cam,KZScreenPos.TYPE type,float _offset_x,float _offset_y)
 {
     _type = type;
     SetCamera(_cam);
     SetOffsetPos(_offset_x,_offset_y);
     SetVector3 ();
     SetScreenPosition(x_offset,y_offset);
 }
Exemple #19
0
 public TuneCanSpwan(float x, float y, float z, float v, TYPE type, int hitTime)
 {
     mDeparture = new Vector3(x, y, z) + GameObject.FindGameObjectWithTag("Player").transform.position;
     mVelocity = v;
     mType = type;
     mHitTime = hitTime;
     mDepartureTime = Math.Max(0,(int)(hitTime - ((mDeparture - GameObject.FindGameObjectWithTag("Player").transform.position).magnitude - USER_SCALE) * 1000 / v));
 }
Exemple #20
0
 public AchievementObject (string id, float initVal, float goalVal, double currProgress) {
   this.id = id;
   this.initValFloat = initVal;
   this.goalValFloat = goalVal;
   this.type = TYPE.FLOAT;
   this.currValFloat = (float)((goalVal - initVal) * (currProgress / 100) + initVal);
   //Debug.Log("Current float progress: " + "gid(" + id + "), pid(" + SocialPlatformManager.spm.achievementInfoMap[id] + "), init(" + initVal + "), goal(" + goalVal + "), currVal(" + currValInt + "), currPercent(" + currProgress + ")");
 }
Exemple #21
0
 void Start()
 {
     playerType = TYPE.NONE;
     isShieldUp = false;
     health = 10;
     Damage = 1;
     actionReady = false;
 }
Exemple #22
0
 public void clear()
 {
     table	= "";
     name	= "";
     type	= TYPE.TEXT;
     isKey	= false;
     isName	= false;
 }
Exemple #23
0
 public ProtectorSpell(int e_d, int s_r, int s_a, TYPE t)
 {
     effect_damage = e_d;
     spell_range = s_r;
     spell_area = s_a;
     type = t;
     effect = "protector_effect";
 }
    public void GenerateInfo(GameObject mainObj)
    {
        this.id = idAc++;
        this.obj = mainObj;
        this.nameOrig = this.obj.name;

        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_panel)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_panel.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.PANEL;
            this.classType = GUIGenerator_Macros.type_image;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_image;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_image)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_image.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.IMAGE;
            this.classType = GUIGenerator_Macros.type_image;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_image;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_text)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_text.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.TEXT;
            this.classType = GUIGenerator_Macros.type_text;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_text;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_button)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_button.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.BUTTON;
            this.classType = GUIGenerator_Macros.type_button;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_button;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_toggle)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_toggle.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.TOGGLE;
            this.classType = GUIGenerator_Macros.type_toggle;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_toggle;
        } else
        if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_input)){
            this.name += this.nameOrig.Substring(GUIGenerator_Macros.elem_input.Length);

            this.type = GUIGenerator_Elem_Base.TYPE.INPUT_FIELD;
            this.classType = GUIGenerator_Macros.type_input;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_input;
        } else{
        //if(this.nameOrig.StartsWith(GUIGenerator_Macros.elem_other)){
            this.name = this.nameOrig;

            this.type = GUIGenerator_Elem_Base.TYPE.OTHER;
            this.classType = GUIGenerator_Macros.type_other;
            this.classTypeFormated = GUIGenerator_Macros.typeFormated_other;
        }

        UpdateVariableNames();
    }
Exemple #25
0
 public Letter(string MinVal, string MajVal, TYPE Type)
 {
     //
     // TODO: Add constructor logic here
     //
     minVal	= MinVal;
     majVal	= MajVal;
     type	= Type;
 }
Exemple #26
0
        public FINDKind(TYPE tryb)
        {
            InitializeComponent();

            this.TrybPracy = tryb;

            LoadCategories();
            LoadMagazyny();
        }
Exemple #27
0
        public Lista(TYPE tryb, ref TextBox txtNetto, ref TextBox txtBrutto, int cid)
        {
            InitializeComponent();

            txtSumaNetto = txtNetto;
            txtSuma = txtBrutto;

            TrybPracy = tryb;

            CID = cid;
        }
Exemple #28
0
 public float GetRangeAverage(TYPE t)
 {
     float count = 0.0f;
     float range = musicType[t].end - musicType[t].start;
     int start = musicType [t].start;
     for(int i=start; i < range+start; i++)
     {
         count += freqData [i];
     }
     return (count / range);
 }
Exemple #29
0
	// Update is called once per frame
	void Update () 
	{
#if UNITY_EDITOR 
		if(last_type!=type)
		{
			GetBox();
			//RenewWH();
			last_type=type;
		}
		else RenewWH();
#endif
	}
Exemple #30
0
 public float GetData(TYPE t, int increment)
 {
     float l = freqData[musicType[t].start];
     //int range = musicType[t].end - musicType[t].start;
     for (int j = 1; j <= musicType[t].increment ; j++)
     {
         float r = freqData[(increment * musicType[t].increment)+musicType[t].start + j];
         l = (l > r) ? l : r;
     }
     //Debug.Log (l);
     return l;
 }
 public GamePacket(String message)
 {
     this.message = message;
     type         = TYPE.TEXT_MESSAGE;
 }
 public GamePacket(Coordinates coordinates)
 {
     this.coordinates = coordinates;
     type             = TYPE.SHOT;
 }
        // Functions
        //----------------------------------------------
        // TF/Bone -> File
        //----------------------------------------------
        public void SetSubData(int unitID,
                               apTransform_Mesh meshTransform,
                               apTransform_MeshGroup meshGroupTransform,
                               apBone bone,
                               apRetargetSubUnit parentRetargetUnit)
        {
            _unitID = unitID;

            _parentUnitID = -1;
            _childUnitIDs.Clear();

            _parentUnit = null;
            _childUnits.Clear();

            if (meshTransform != null)
            {
                _type     = TYPE.MeshTransform;
                _uniqueID = meshTransform._transformUniqueID;

                _name = meshTransform._nickName;

                _defaultMatrix.SetMatrix(meshTransform._matrix);
                _defaultColor = meshTransform._meshColor2X_Default;
                _isVisible    = meshTransform._isVisible_Default;
            }
            else if (meshGroupTransform != null)
            {
                _type     = TYPE.MeshGroupTransform;
                _uniqueID = meshGroupTransform._transformUniqueID;

                _name = meshGroupTransform._nickName;

                _defaultMatrix.SetMatrix(meshGroupTransform._matrix);
                _defaultColor = meshGroupTransform._meshColor2X_Default;
                _isVisible    = meshGroupTransform._isVisible_Default;
            }
            else if (bone != null)
            {
                _type     = TYPE.Bone;
                _uniqueID = bone._uniqueID;

                _name = bone._name;

                _defaultMatrix.SetMatrix(bone._defaultMatrix);
                _defaultColor = Color.white;
                _isVisible    = true;
            }
            else
            {
                Debug.LogError("Wrong Sub Unit");
                return;
            }

            if (parentRetargetUnit != null)
            {
                //Parent와 연결한다.

                _parentUnitID = parentRetargetUnit._unitID;
                _parentUnit   = parentRetargetUnit;

                parentRetargetUnit._childUnitIDs.Add(_unitID);
                parentRetargetUnit._childUnits.Add(this);
            }
        }
        public static bool CheckAndShowPopupDialog(TYPE type)
        {
            Func <bool> checkFunc = null;
            string      title     = "";
            string      reason    = "";

            string patchName1    = "";
            string patchName2    = "";
            string patchShowName = null;

            string patchName3     = "";
            string patchName4     = "";
            string patchShowName3 = null;

            if (type == TYPE.MagicPatch_By_Menu)
            {
                checkFunc = () => {
                    return(ImageUtilMagic.SearchMagicSystem() != ImageUtilMagic.magic_system_enum.NO);
                };
                title = R._("魔法を追加するには、魔法システムパッチが必要です。");
                string version = Program.ROM.RomInfo.VersionToFilename();
                if (version == "FE6")
                {                                            //FE6
                    //patchName1 = "FEditorMagicCSASystem_FE6";///No Translate
                    patchName3 = "CSA_Creator_For_FE6_ver2"; ///No Translate
                }
                else if (version == "FE7J")
                {                                                 //FE7J
                    patchName1 = "Custom Spell Animation Engine"; ///No Translate
                    //patchName3 = "CSA_Creator_For_FE7U";///No Translate

//                    string no_patch = R._("残念ながら、FE7J用の魔法システムパッチは存在しません。\r\n");
//                    R.ShowStopError(title + "\r\n" + no_patch);
//                    return false;
                }
                else if (version == "FE7U")
                {                                             //FE7U
                    //patchName1 = "FEditorMagicCSASystem_FE7U";///No Translate
                    patchName3 = "CSA_Creator_For_FE7U_ver2"; ///No Translate
                }
                else if (version == "FE8J")
                {                                                       //FE8J
                    patchName1 = "magic patch (FeditorAdvMagicSystem)"; ///No Translate
                    patchName3 = "CSA_Creator_For_FE8J_ver2";           ///No Translate
                }
                else if (version == "FE8U")
                {                                              //FE8U
                    patchName1 = "FEditorMagicCSASystem_FE8U"; ///No Translate
                    patchName3 = "CSA_Creator_For_FE8U_ver2";  ///No Translate
                }

                if (patchName1 != "" && patchName3 != "")
                {
                    reason  = R._("魔法システムパッチは2つあるので、どちらかを選んでください。\r\n");
                    reason += R._("FEditorMagicCSASystemは、長い動作実績のある魔法システムです。\r\n");
                    reason += R._("CSA_Creatorは、より解像度をサポートする、新進気鋭の魔法システムです。\r\n");
                }
                else
                {
                    reason = R._("魔法システムパッチを適用してください。");
                }
            }
            else if (type == TYPE.DrawFont_By_Translate)
            {
                checkFunc = () => { return(PatchUtil.draw_font_enum.NO != PatchUtil.SearchDrawFontPatch()); };
                title     = R._("他の言語を表示するにはDrawFontパッチが必要です。");
                if (Program.ROM.RomInfo.is_multibyte())
                {
                    patchName3 = "DrawSingleByte";///No Translate
                }
                else
                {
                    patchName1 = "DrawMultiByte"; ///No Translate
                    patchName3 = "DrawUTF8";      ///No Translate

                    reason += R._("日本語へ翻訳する場合は、DrawMultiByte を選択してください。\r\n");
                    reason += R._("日本語以外へ翻訳する場合は、DrawUTF8 を選択してください\r\n");
                }
            }

            Debug.Assert(checkFunc != null);
            Debug.Assert(title != "");
            if (checkFunc())
            {//すでに適応されている.
                return(true);
            }
            if (patchShowName == null)
            {
                patchShowName = patchName1;
            }
            if (patchShowName3 == null)
            {
                patchShowName3 = patchName3;
            }

            HowDoYouLikePatch2Form f = (HowDoYouLikePatch2Form)InputFormRef.JumpFormLow <HowDoYouLikePatch2Form>();

            f.Text             = title;
            f.ReasonLabel.Text = R._("{0}\r\n\r\n{1}", title, reason);

            if (patchName1 == "")
            {
                f.EnableButton.Hide();
            }
            else
            {
                f.EnableButton.Text   = R._("{0}パッチを有効にする", patchShowName);
                f.EnableButton.Click += (sender, e) =>
                {
                    f.Close();

                    PatchForm patchF = (PatchForm)InputFormRef.JumpForm <PatchForm>();
                    patchF.ApplyPatch(patchName1, patchName2); ///No Translate
                };
            }

            if (patchName3 == "")
            {
                f.EnableButton3.Hide();
            }
            else
            {
                f.EnableButton3.Text   = R._("{0}パッチを有効にする", patchShowName3);
                f.EnableButton3.Click += (sender, e) =>
                {
                    f.Close();

                    PatchForm patchF = (PatchForm)InputFormRef.JumpForm <PatchForm>();
                    patchF.ApplyPatch(patchName3, patchName4); ///No Translate
                };
            }

            if (Program.IsCommandLine)
            {//コマンドラインモードだったら自動適応するしかないね。
                f.CommandLineClick(patchName1, patchName3);
                return(checkFunc());
            }

            f.ShowDialog();

            return(checkFunc());
        }
Exemple #35
0
 /// <summary>
 ///     Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 internal Image Encode(TYPE iType)
 {
     Encoded_Type = iType;
     return(Encode());
 }
Exemple #36
0
 /// <summary>
 ///     Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="StringToEncode">Raw data to encode.</param>
 /// <param name="ForeColor">Foreground color</param>
 /// <param name="BackColor">Background color</param>
 /// <returns>Image representing the barcode.</returns>
 public Image Encode(TYPE iType, string StringToEncode, Color ForeColor, Color BackColor)
 {
     this.BackColor = BackColor;
     this.ForeColor = ForeColor;
     return(Encode(iType, StringToEncode));
 }
Exemple #37
0
 /// <summary>
 ///     Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="StringToEncode">Raw data to encode.</param>
 /// <param name="Width">Width of the resulting barcode.(pixels)</param>
 /// <param name="Height">Height of the resulting barcode.(pixels)</param>
 /// <returns>Image representing the barcode.</returns>
 public Image Encode(TYPE iType, string StringToEncode, int Width, int Height)
 {
     this.Width  = Width;
     this.Height = Height;
     return(Encode(iType, StringToEncode));
 }
Exemple #38
0
 internal TypeOperand(TYPE identType)
 {
     this.identType = identType;
 }
Exemple #39
0
 /// <summary>
 /// Internet Address
 /// </summary>
 /// <param name="Name">Name</param>
 /// <param name="Type">Resource Record Type</param>
 /// <param name="Class">Resource Record Class</param>
 /// <param name="Ttl">Time to live</param>
 /// <param name="Data">RR-specific binary data.</param>
 public A(string Name, TYPE Type, CLASS Class, uint Ttl, Stream Data)
     : base(Name, Type, Class, Ttl, Data)
 {
 }
 public GamePacket(GameResult result)
 {
     this.gameResult = result;
     type            = TYPE.GAME_RESULT;
 }
 /// <summary>
 /// Constructs a new frame header using the given field values
 /// </summary>
 public FrameHeader(TYPE type, long position, object value, bool isLittleEndian = true, string parentZone = "")
 {
     Type = type; Position = position; Value = value; IsLittleEndian = isLittleEndian; ParentZone = parentZone;
 }
Exemple #42
0
        public async Task <int> AddLibraryAGSData(IAGSGroupTables tables, Guid?LibraryAGSDataId)
        {
            if (LibraryAGSDataId != null)
            {
                await SetLibraryAGSData(LibraryAGSDataId.Value);
            }

            if (_library == null)
            {
                return(-1);
            }

            AGS404GroupTables ags404_lib = (AGS404GroupTables)_library;
            AGS404GroupTables _tables    = (AGS404GroupTables)tables;

            // ABBR

            if (_tables.ABBR != null)
            {
                foreach (ABBR abbr in _tables.ABBR.values)
                {
                    ABBR abbr_lib = ags404_lib.ABBR.values.Find(e => e.ABBR_CODE == abbr.ABBR_CODE &&
                                                                e.ABBR_HDNG == abbr.ABBR_HDNG);
                    if (abbr_lib != null)
                    {
                        abbr.ABBR_DESC = abbr_lib.ABBR_DESC;
                        abbr.ABBR_REM  = abbr_lib.ABBR_REM;
                    }
                }
            }

            if (_tables.UNIT != null)
            {
                foreach (UNIT unit in _tables.UNIT.values)
                {
                    UNIT unit_lib = ags404_lib.UNIT.values.Find(e => e.UNIT_UNIT == unit.UNIT_UNIT);
                    if (unit_lib != null)
                    {
                        unit.UNIT_DESC = unit_lib.UNIT_DESC;
                        unit.UNIT_REM  = unit_lib.UNIT_REM;
                    }
                }
            }

            if (_tables.TYPE != null)
            {
                foreach (TYPE type in _tables.TYPE.values)
                {
                    TYPE type_lib = ags404_lib.TYPE.values.Find(e => e.TYPE_TYPE == type.TYPE_TYPE);
                    if (type_lib != null)
                    {
                        type.TYPE_DESC = type_lib.TYPE_DESC;
                        //    type.TYPE_REM = type_lib.TYPE_REM;
                    }
                }
            }

            if (_tables.DICT != null)
            {
                foreach (DICT dict in _tables.DICT.values)
                {
                    DICT dict_lib = ags404_lib.DICT.values.Find(e => e.DICT_HDNG == dict.DICT_HDNG &&
                                                                e.DICT_PGRP == dict.DICT_PGRP);
                    if (dict_lib != null)
                    {
                        dict.DICT_DESC = dict_lib.DICT_DESC;
                        dict.DICT_DTYP = dict_lib.DICT_DTYP;
                        dict.DICT_EXMP = dict_lib.DICT_EXMP;
                        dict.DICT_REM  = dict_lib.DICT_REM;
                    }
                }
            }

            return(1);
        }
Exemple #43
0
        public Kakto(Color color, Vector2 origin_, TYPE type_)
            : base(color, origin_)
        {
            type      = type_;
            origin    = origin_;
            left      = false;
            localLeft = false;
            Random rand = new Random(DateTime.Now.Millisecond);

            if (color == Color.Red)
            {
                switch (rand.Next(0, 3))
                {
                case 0:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Red\\03\\red_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;

                case 1:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Red\\01\\red_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;

                case 2:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Red\\02\\red_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;
                }
            }
            if (color == Color.Blue)
            {
                switch (rand.Next(0, 3))
                {
                case 0:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Blue\\03\\blue_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;

                case 1:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Blue\\01\\blue_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;

                case 2:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Blue\\02\\blue_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;
                }
            }
            if (color == Color.Green)
            {
                switch (rand.Next(0, 3))
                {
                case 0:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Green\\03\\green_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;

                case 1:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Green\\01\\green_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;

                case 2:
                    mSpriteWalking = new Sprite(ExtraFunctions.fillArrayWithImages2(1, 5, "enemies\\Kaktos\\Green\\02\\green_kaktos"), new int[] { 0, 1, 2, 3, 4 }, 9, 95, 95, false, false);
                    break;
                }
            }

            addSprite(mSpriteWalking, sSTATE_WALKING);

            changeToSprite(sSTATE_WALKING);

            setCenterHotspot(new Vector2(274, 101));
            setCollisionRect(0, 0, 90, 90);
            setLocation(origin);
        }
Exemple #44
0
 public Interleaved2of5(string input, TYPE EncodedType)
 {
     Encoded_Type = EncodedType;
     Raw_Data     = input;
 }
Exemple #45
0
 public Barcode(string data, TYPE iType)
 {
     EncodedImage = null;
     Raw_Data     = data;
     Encoded_Type = iType;
 }
Exemple #46
0
        }//Barcode

        public Barcode(string data, TYPE iType)
        {
            this.Raw_Data     = data;
            this.Encoded_Type = iType;
        }
Exemple #47
0
 /// <summary>
 ///     Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="StringToEncode">Raw data to encode.</param>
 /// <param name="ForeColor">Foreground color</param>
 /// <param name="BackColor">Background color</param>
 /// <param name="Width">Width of the resulting barcode.(pixels)</param>
 /// <param name="Height">Height of the resulting barcode.(pixels)</param>
 /// <returns>Image representing the barcode.</returns>
 public Image Encode(TYPE iType, string StringToEncode, Color ForeColor, Color BackColor, int Width, int Height)
 {
     this.Width  = Width;
     this.Height = Height;
     return(Encode(iType, StringToEncode, ForeColor, BackColor));
 }
Exemple #48
0
 public AbstractEvent(TYPE type, long timestamp)
 {
     // use this if you care about the timestamp
     this.type      = type;
     this.timestamp = timestamp;
 }
Exemple #49
0
 /// <summary>
 ///     Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="StringToEncode">Raw data to encode.</param>
 /// <returns>Image representing the barcode.</returns>
 public Image Encode(TYPE iType, string StringToEncode)
 {
     Raw_Data = StringToEncode;
     return(Encode(iType));
 }
Exemple #50
0
 public Standard2of5(string input, TYPE encodedType)
 {
     Raw_Data     = input;
     _encodedType = encodedType;
 }//Standard2of5
        public static bool CheckAndShowPopupDialog(TYPE type)
        {
            Func <bool> checkFunc     = null;
            string      reason        = "";
            string      patchName1    = "";
            string      patchName2    = "";
            string      patchShowName = null;
            string      patchCombo    = "";

            if (type == TYPE.Anti_Huffman_By_Translate)
            {
                checkFunc  = PatchUtil.SearchAntiHuffmanPatch;
                reason     = R._("翻訳された文章がハフマン符号化テーブルを超えている可能性があります。\r\nAntiHuffmanPatchを適応しておくことをお勧めします。");
                patchName1 = "Anti-Huffman";///No Translate
            }
            if (type == TYPE.Anti_Huffman_By_English)
            {
                checkFunc  = PatchUtil.SearchAntiHuffmanPatch;
                reason     = R._("英語版で、テキストを変更するためには、Anti-Huffman Patchが必要です。");
                patchName1 = "Anti-Huffman";///No Translate
            }
            else if (type == TYPE.C01Hack_By_ImageBattleAnimation)
            {
                checkFunc  = PatchUtil.SearchC01HackPatch;
                reason     = R._("このアニメーションには、C01 命令が使われています。\r\n現在、C01ハックパッチは、まだインストールされていません。\r\nアニメーションを再生するためには、\r\nC01ハックを有効にした方がいいと思われますが、どうしますか?\r\n");
                patchName1 = "01command_hack"; ///No Translate
                patchName2 = "01コマンドハック";      ///No Translate
            }
            else if (type == TYPE.C48Hack_By_ImageBattleAnimation)
            {
                checkFunc  = PatchUtil.SearchC48HackPatch;
                reason     = R._("このアニメーションには、C48 命令(or Sxx命令)が使われています。\r\n現在、C48ハックパッチは、まだインストールされていません。\r\nアニメーションを再生するためには、\r\nC48ハックを有効にした方がいいと思われますが、どうしますか?\r\n");
                patchName1 = "48command_hack"; ///No Translate
                patchName2 = "48コマンドハック";      ///No Translate
            }
            else if (type == TYPE.NIMAP_By_SongTrack)
            {
                checkFunc = PatchUtil.SearchNIMAP;
                reason    = R._("Midi楽器はFE楽器と並び順が違うので、\r\nNIMAPを利用することをお勧めします。");
                if (Program.ROM.RomInfo.version() == 8)
                {                                                       //FE8用には更新されたバージョンを利用する.
                    patchName1 = "SOUND_NIMAP2(Native Instrument Map)"; ///No Translate
                    patchName2 = "SOUND_NIMAP2";                        ///No Translate
                }
                else
                {
                    patchName1 = "SOUND_NIMAP(Native Instrument Map)"; ///No Translate
                    patchName2 = "SOUND_NIMAP";                        ///No Translate
                }
            }
            else if (type == TYPE.Track12_Over_By_SongTrack)
            {
                checkFunc  = PatchUtil.Search16tracks12soundsPatch;
                reason     = R._("この楽曲の楽譜は、12以上のトラックが存在しています。\r\nこの曲をゲームで再生するには、16_tracks_12_soundsが必要です。\r\nこのパッチを適応しますか?");
                patchName1 = "16_tracks_12_sounds";///No Translate
            }
            else if (type == TYPE.MeleeAndMagicFix_By_Unit)
            {
                checkFunc  = PatchUtil.SearchMeleeAndMagicFixPatch;
                reason     = R._("武器と魔法を同時に利用するにはMeleeAndMagicPatchが必要です。\r\n有効にしますか?");
                patchName1 = "MeleeAndMagicFix";///No Translate
            }
            else if (type == TYPE.ItemIconExpands)
            {
                checkFunc  = PatchUtil.SearchIconExpandsPatch;
                reason     = R._("アイコンを拡張するには、テーブルを拡張する前にパッチを適応する必要があります。\r\n有効にしますか?");
                patchName1 = "Extended to item icon 0xFE";   ///No Translate
                patchName2 = "Extend Item Icon List Length"; ///No Translate
                patchCombo = "fix";
            }
            else if (type == TYPE.MagicPatch_By_Menu)
            {
                return(HowDoYouLikePatch2Form.CheckAndShowPopupDialog(HowDoYouLikePatch2Form.TYPE.MagicPatch_By_Menu));
            }
            else if (type == TYPE.Skill)
            {
                if (Program.ROM.RomInfo.version() != 8)
                {
                    return(false);
                }
                if (Program.ROM.RomInfo.is_multibyte())
                {
                    checkFunc = () =>
                    {
                        PatchUtil.skill_system_enum a = PatchUtil.SearchSkillSystem();
                        return(a == PatchUtil.skill_system_enum.FE8N ||
                               a == PatchUtil.skill_system_enum.FE8N_ver2 ||
                               a == PatchUtil.skill_system_enum.yugudora
                               );
                    };
                    reason     = R._("スキル拡張 FE8N が必要です。\r\n有効にしますか?");
                    patchName1 = "Skill Extension FE8N 2019_02_19"; ///No Translate
                    patchName2 = "skill_2019_02_19";                ///No Translate
                }
                else
                {
                    checkFunc = () =>
                    {
                        return(PatchUtil.SearchSkillSystem() == PatchUtil.skill_system_enum.SkillSystem);
                    };
                    reason     = R._("スキル拡張 SkillSystems が必要です。\r\n有効にしますか?");
                    patchName1 = "Skill20191022"; ///No Translate
                    patchName2 = "Skill20191022"; ///No Translate
                }
            }
            else if (type == TYPE.SkipWorldmapFix)
            {
                if (Program.ROM.RomInfo.version() != 8)
                {
                    return(false);
                }

                checkFunc = () =>
                {
                    return(PatchUtil.SearchSkipWorldMapPatch() != PatchUtil.mnc2_fix_enum.NO);
                };
                reason        = R._("FE8のマップをワールドマップを経由しないで移動させるには、パッチが必要です。\r\n有効にしますか?");
                patchName1    = "Eliminate the constraint of freezing unless it enters from the world map";  ///No Translate
                patchName2    = "Eliminate the constraint of freezing unless it enters from the world map."; ///No Translate
                patchShowName = "Skip Worldmap";
                patchCombo    = "fix";
            }
            else if (type == TYPE.CAMERA_Event_OutOfBand_Fix)
            {
                if (Program.ROM.RomInfo.version() != 8)
                {
                    return(false);
                }

                checkFunc = () =>
                {
                    return(PatchUtil.SearchCAMERA_Event_OutOfBand_FixPatch());
                };
                reason        = R._("カメラを移動する命令で、画面外に飛び出してしまうバグを修正するパッチをインストールしますか?");
                patchName1    = "Fix CAM1_CAMERA2 going out of bounds"; ///No Translate
                patchName2    = "Fix CAM1_CAMERA2 going out of bounds"; ///No Translate
                patchShowName = "Fix CAM1_CAMERA2 going out of bounds";
                patchCombo    = "Fix";
            }
            else if (type == TYPE.CAMERA_Event_NotExistsUnit_Fix)
            {
                if (Program.ROM.RomInfo.version() != 8)
                {
                    return(false);
                }

                checkFunc = () =>
                {
                    return(PatchUtil.SearchCAMERA_Event_NotExistsUnit_FixPatch());
                };
                reason        = R._("存在しないユニットを指定した時にフリーズするバグを修正するパッチをインストールしますか?");
                patchName1    = "Event26_CameraControlMaybe_Fix not to freeze even nonexistent units"; ///No Translate
                patchName2    = "Event26_CameraControlMaybe_Fix not to freeze even nonexistent units"; ///No Translate
                patchShowName = "Event26_CameraControlMaybe_Fix not to freeze even nonexistent units";
                patchCombo    = "Fix";
            }
            else if (type == TYPE.UnitStateEvent_0x34_Fix)
            {
                if (Program.ROM.RomInfo.version() != 8)
                {
                    return(false);
                }

                checkFunc = () =>
                {
                    return(PatchUtil.SearchUnitStateEvent_0x34_FixPatch());
                };
                reason        = R._("存在しないユニットを指定した時にフリーズするバグを修正するパッチをインストールしますか?");
                patchName1    = "Event34_MessWithUnitState_Fix not to freeze even nonexistent units"; ///No Translate
                patchName2    = "Event34_MessWithUnitState_Fix not to freeze even nonexistent units"; ///No Translate
                patchShowName = "Event34_MessWithUnitState_Fix not to freeze even nonexistent units";
                patchCombo    = "Fix";
            }
            else if (type == TYPE.WakuEvent_0x3B_Fix)
            {
                if (Program.ROM.RomInfo.version() != 8)
                {
                    return(false);
                }

                checkFunc = () =>
                {
                    return(PatchUtil.SearchWakuEvent_0x3B_FixPatch());
                };
                reason        = R._("存在しないユニットを指定した時にフリーズするバグを修正するパッチをインストールしますか?");
                patchName1    = "Event3B_frame_Fix not to freeze even nonexistent units"; ///No Translate
                patchName2    = "Event3B_frame_Fix not to freeze even nonexistent units"; ///No Translate
                patchShowName = "Event3B_frame_Fix not to freeze even nonexistent units";
                patchCombo    = "Fix";
            }

            Debug.Assert(checkFunc != null);
            Debug.Assert(patchName1 != "");
            Debug.Assert(reason != "");
            if (checkFunc())
            {//すでに適応されている.
                return(true);
            }
            if (patchShowName == null)
            {
                patchShowName = patchName1;
            }

            HowDoYouLikePatchForm f = (HowDoYouLikePatchForm)InputFormRef.JumpFormLow <HowDoYouLikePatchForm>();
            string tile             = R._("{0}パッチを有効にしますか?", patchShowName);

            f.Text                = tile;
            f.ReasonLabel.Text    = R._("{0}\r\n\r\n{1}", tile, reason);
            f.EnableButton.Text   = R._("{0}パッチを有効にする", patchShowName);
            f.EnableButton.Click += (sender, e) => {
                f.Close();
                PatchForm patchF = (PatchForm)InputFormRef.JumpForm <PatchForm>();
                bool      r      = patchF.ApplyPatch(patchName1, patchName2, patchCombo); ///No Translate
                if (!r)
                {
                    R.ShowStopError("パッチの自動適応に失敗しました。\r\nパッチ画面にエラーが表示されていないか確認してください。\r\n必須パッチの適応に失敗したということは、FEBuilderGBAの解凍に失敗している可能性があります。\r\nFEBuilderGBAを再インストールしてください。\r\nそれでも問題が解決しない場合は、バグとして報告してください。\r\n");
                }
                f.Close();
            };

            if (Program.IsCommandLine)
            {//コマンドラインモードだったら自動適応するしかないね。
                U.FireOnClick(f.EnableButton);
                return(checkFunc());
            }

            f.ShowDialog();

            return(checkFunc());
        }
 public GamePacket(ShotResult result)
 {
     this.shotResult = result;
     type            = TYPE.RESULT;
 }
 public GamePacket(bool whoStarts)
 {
     this.whoStarts = whoStarts;
     type           = TYPE.WHO_STARTS;
 }
Exemple #54
0
 /// <summary>
 /// Abstract base class for resource records referring to a name.
 /// </summary>
 /// <param name="Name">Name</param>
 /// <param name="Type">Resource Record Type</param>
 /// <param name="Class">Resource Record Class</param>
 /// <param name="Ttl">Time to live</param>
 /// <param name="Data">RR-specific binary data.</param>
 public ResourceNameRecord(string Name, TYPE Type, CLASS Class, uint Ttl,
                           Stream Data)
     : base(Name, Type, Class, Ttl)
 {
     this.name2 = DnsClient.ReadName(Data);
 }
 public MSI(string input, TYPE EncodedType)
 {
     Encoded_Type = EncodedType;
     Raw_Data     = input;
 }//MSI
 public Node(WorkflowContext context, string name, TYPE type)
 {
     this.context = context;
     Name         = name;
 }
Exemple #57
0
 // 退場を開始する.
 public void BeginLeave()
 {
     this.GetComponent <Collider>().enabled = false;
     this.type = TYPE.LEAVE;
 }
Exemple #58
0
 public bool IsType(TYPE t)
 {
     return((Type & (int)t) != 0);
 }
Exemple #59
0
        //TODO Construir mecanismo de chamar um delegate method when finish animation



        public Kakto(Color color, TYPE type) : this(color, new Vector2(0, 0), type)
        {
        }
 public GamePacket(int x, int y)
 {
     coordinates = Coordinates.Get(x, y);
     type        = TYPE.SHOT;
 }