예제 #1
0
    private void saveTest()
    {
        PioneerManager.getInstance().finished();
        //HealItemMasterManager.getInstance().updateProgress();

        Debug.Log("heal " + HealItemMasterManager.getInstance().getHealItemFromId(0).getHeal());
    }
예제 #2
0
 public void reset()
 {
     tradedAttributeTable.Clear();
     clearedQuest     = 0;
     tradedValue      = 0;
     tradedTimes      = 0;
     totalTradedValue = 0;
     PioneerManager.getInstance().removeObserver(this);
 }
예제 #3
0
 private WorldCreatFlugHelper()
 {
     PioneerManager.getInstance().setObserver(this);
     if (ES2.Exists("BasicData"))
     {
         ES2Reader reader = ES2Reader.Create("BasicData");
         this.worldPasses    = reader.ReadList <Int32>("WorldPass");
         this.worldIdDefault = reader.Read <Int32>("WorldIdDefault");
     }
 }
예제 #4
0
    public EnemyObserver(int observeEnemyId)
    {
        this.OBSERVE_ENEMY_ID = observeEnemyId;
        PioneerManager.getInstance().setObserver(this);

        var keys = Enum.GetValues(typeof(AttackSkillAttribute));

        foreach (var key in keys)
        {
            dammagedAttributeTimes.Add((AttackSkillAttribute)key, 0);
        }
    }
예제 #5
0
 public void activateCompensation(Player player)
 {
     if (compentionType == CompentionType.FINISH)
     {
         PioneerManager.getInstance().missionClearPrint();
     }
     else if (compentionType == CompentionType.METAL)
     {
         player.addMetal(LEVEL * 10 * EXTERMINATION_NUMBER);
     }
     else
     {
         player.addItem(getCompensationItem());
     }
 }
예제 #6
0
    public TownObserver(Town town)
    {
        this.TOWN   = town;
        this.townId = town.getId();
        foreach (IFriendly character in town.getCharacters())
        {
            charactersTraded.Add(character, 0);
        }

        var attributes = Enum.GetValues(typeof(ItemAttribute));

        foreach (ItemAttribute attribute in attributes)
        {
            tradedAttributeTable.Add(attribute, 0);
        }

        townNumber++;
        PioneerManager.getInstance().setObserver(this);
    }
예제 #7
0
 public void back()
 {
     menu.setIsDisplaying(false);
     PioneerManager.getInstance().retire();
 }
예제 #8
0
 public void death()
 {
     PioneerManager.getInstance().deathPrint();
 }
예제 #9
0
 protected ItemObserver(int itemId)
 {
     OBSERVE_ITEM_ID = itemId;
     PioneerManager.getInstance().setObserver(this);
 }
예제 #10
0
 public SkillObserver(int id)
 {
     this.OBSERVE_SKILL_ID = id;
     PioneerManager.getInstance().setObserver(this);
 }
예제 #11
0
 public void reset()
 {
     world.resetWorld();
     WorldCreatFlugHelper.getInstance().setWorldLoaded(false);
     PioneerManager.getInstance().removeObserver(this);
 }
예제 #12
0
 public WorldObserver(World world)
 {
     this.world = world;
     PioneerManager.getInstance().setObserver(this);
 }
예제 #13
0
 public void finishPlaying()
 {
     PioneerManager.getInstance().finished();
     Destroy(gameObject);
 }