예제 #1
0
 public override Int32 GetHashCode()
 {
     return(ShopCode.GetHashCode()
            ^ ArticleCode.GetHashCode()
            ^ ColorCode.GetHashCode()
            ^ SizeCode.GetHashCode());
 }
예제 #2
0
 public override Int32 GetHashCode()
 {
     return(ShopCode.GetHashCode() ^ Client);
 }
예제 #3
0
 public override Int32 GetHashCode()
 {
     return(ShopCode.GetHashCode() ^ MovementNumber);
 }
예제 #4
0
    public CodeData CreateCodeData(TextCovertedData data, EventCodeScriptable scr)
    {
        if (data == null)
        {
            return(new EndCode());
        }
        if (CheckChain(data))
        {
            return(this);
        }
        CodeData result = null;
        var      head   = data._head.ToLower();

        switch (head)
        {
        case "":
        case "name":    //name[name]
            result = new TextData(data);
            break;

        case "branch":    //branch \nbranchName \n $#1...
            result = new BranchCode(data);
            break;

        case "flag":    //flag[flagName] 5
            result = new FlagCode(data);
            break;

        case "item":    //item[itemName] 1
            result = new ItemCode(data);
            break;

        case "shop":    //shop[shopName]
            result = new ShopCode(data);
            break;

        case "skill":    //skill[playerName,skillname]
            result = new SkillCode(data);
            break;

        case "map":    //map[mapName]
            result = new MapCode(data);
            break;

        case "image":    //image[setName,num] back (center)
            result = new ImageCode(data);
            break;

        case "music":    //music[setName,0]
            result = new AudioCode(data);
            break;

        case "battle":    //battle[enemySetName]
            result = new BattleCode(data);
            break;

        case "load":    //load[black] 500
            result = new LoadCode(data);
            break;

        case "wait":    //wait[500]
            result = new WaitCode(data);
            break;

        default:
            return(null);
        }
        result._targetScr = scr;
        return(result);
    }