상속: BaseLangData
    public void RequestTeleport(string teleportDataJson)
    {
        if (view.contentAnimator.isVisible)
        {
            return;
        }

        Utils.UnlockCursor();

        view.Reset();
        SetVisibility(true);

        teleportData = Utils.SafeFromJson <TeleportData>(teleportDataJson);

        switch (teleportData.destination)
        {
        case TELEPORT_COMMAND_MAGIC:
            view.ShowTeleportToMagic();
            break;

        case TELEPORT_COMMAND_CROWD:
            view.ShowTeleportToCrowd();
            break;

        default:
            view.ShowTeleportToCoords(teleportData.destination,
                                      teleportData.sceneData.name,
                                      teleportData.sceneData.owner,
                                      teleportData.sceneData.previewImageUrl);
            SetSceneEvent();
            break;
        }
    }
예제 #2
0
 public TeleportData(TeleportData other)
 {
     tier       = other.tier;
     power      = new Attribute(other.power);
     time       = new Attribute(other.time);
     gemSlots   = new List <GemSlot>(other.gemSlots);
     graphicsId = other.graphicsId;
 }
예제 #3
0
 public HeroData(HeroData other)
 {
     isEmpty              = other.isEmpty;
     characterName        = other.characterName;
     raceId               = other.raceId;
     xp                   = other.xp;
     level                = other.level;
     rankPoints           = other.rankPoints;
     totalAttributePoints = other.totalAttributePoints;
     spentAttributePoints = other.spentAttributePoints;
     skillTreeSlots       = other.skillTreeSlots.DeepCopy();
     skills               = other.skills.DeepCopy();
     primarySkill         = new SkillID(other.primarySkill);
     secondarySkills      = other.secondarySkills.DeepCopy();
     unitData             = new UnitData(other.unitData);
     teleportData         = new TeleportData(other.teleportData);
 }
예제 #4
0
    public void Init(string name, RaceID raceId)
    {
        isEmpty       = false;
        characterName = name;
        this.raceId   = raceId;
        xp            = 0;
        level         = 1;
        rankPoints    = 0;
        Utils.InitWithNew(ref skillTreeSlots, StartingSkillSlotsCount);

        unitData        = Main.StaticData.Game.Races.GetValue(raceId).BaseStats;
        skills          = unitData.Skills;
        primarySkill    = unitData.MainAttack;
        secondarySkills = new List <SkillID>(StartingSecondarySkillsCount);

        teleportData = new TeleportData();
    }
예제 #5
0
    /*
    ============================================================================
    Init functions
    ============================================================================
    */
    public void Init()
    {
        // first init languages
        languages = new LanguageData();

        statusValues = new  StatusValueData();
        elements = new  ElementData();
        races = new RaceData();
        sizes = new SizeData();
        areaNames = new AreaNameData();
        armors = new ArmorData();
        cameraPositions = new  CameraPositionData();
        attacks = new BaseAttackData();
        characters = new  CharacterData();
        classes = new  ClassData();
        colors = new  ColorData();
        dialoguePositions = new  DialoguePositionData();
        battleAIs = new  BattleAIData();
        enemies = new  EnemyData();
        equipParts = new  EquipmentPartData();
        formulas = new  FormulaData();
        gameSettings = new  GameSettingsData();
        items = new  ItemData();
        itemTypes = new  ItemTypeData();
        loadSaveHUD = new LoadSaveHUDData();
        mainMenu = new MainMenuData();
        skillTypes = new  SkillTypeData();
        effects = new  StatusEffectData();
        skills = new  SkillData();
        weapons = new  WeaponData();
        music = new MusicData();
        huds = new HUDData();
        recipes = new ItemRecipeData();
        fonts = new FontData();
        globalEvents = new GlobalEventData();
        teleports = new TeleportData();
        difficulties = new DifficultyData();

        // battle system
        battleAnimations = new BattleAnimationData();
        battleSystem = new BattleSystemData();
    }