Beispiel #1
0
    public override void ResetValues()
    {
        base.ResetValues();
        sizeX     = 0;
        sizeY     = 0;
        mapSprite = null;

        mapDescription = "";

        winCondition  = WinCondition.ROUT;
        loseCondition = LoseCondition.NONE;
        turnLimit     = 0;

        skipBattlePrep = false;
        preDialogue    = null;
        introDialogue  = null;
        endDialogue    = null;

        mapMusic = null;

        spawnPoints1     = new List <Position>();
        spawnPoints2     = new List <Position>();
        forcedCharacters = new List <CharEntry>();
        lockedCharacters = new List <CharEntry>();

        enemies        = new List <SpawnData>();
        allies         = new List <SpawnData>();
        reinforcements = new List <SpawnData>();

        interactions = new List <InteractPosition>();

        triggerIds   = new List <TriggerTuple>();
        triggerAreas = new List <TriggerArea>();
        turnEvents   = new List <TurnEvent>();
    }
    public override void CopyValues(ScrObjLibraryEntry other)
    {
        base.CopyValues(other);
        MusicSetEntry ms = (MusicSetEntry)other;

        playerTheme = ms.playerTheme;
        enemyTheme  = ms.enemyTheme;
        battleTheme = ms.battleTheme;
        healTheme   = ms.healTheme;
    }
Beispiel #3
0
    protected override void DrawContentWindow()
    {
        MusicSetEntry musicValues = (MusicSetEntry)entryValues;

        GUILayout.Label("Music set", EditorStyles.boldLabel);

        GUILayout.Label("Overworld Themes", EditorStyles.boldLabel);
        musicValues.playerTheme = (MusicEntry)EditorGUILayout.ObjectField("Player Theme", musicValues.playerTheme, typeof(MusicEntry), false);
        musicValues.enemyTheme  = (MusicEntry)EditorGUILayout.ObjectField("Enemy Theme", musicValues.enemyTheme, typeof(MusicEntry), false);

        GUILayout.Label("Battle Themes", EditorStyles.boldLabel);
        musicValues.battleTheme = (MusicEntry)EditorGUILayout.ObjectField("Battle Theme", musicValues.battleTheme, typeof(MusicEntry), false);
        musicValues.healTheme   = (MusicEntry)EditorGUILayout.ObjectField("Heal Theme", musicValues.healTheme, typeof(MusicEntry), false);
    }
Beispiel #4
0
 /// <summary>
 /// Constructor for the editor window.
 /// </summary>
 /// <param name="entries"></param>
 /// <param name="container"></param>
 public SonglistEditorWindow(ScrObjLibraryVariable entries, MusicSetEntry container)
 {
     entryLibrary = entries;
     entryValues  = container;
     LoadLibrary();
 }
Beispiel #5
0
    public override void CopyValues(ScrObjLibraryEntry other)
    {
        base.CopyValues(other);
        MapEntry map = (MapEntry)other;

        sizeX     = map.sizeX;
        sizeY     = map.sizeY;
        mapSprite = map.mapSprite;

        mapDescription = map.mapDescription;

        winCondition  = map.winCondition;
        loseCondition = map.loseCondition;
        turnLimit     = map.turnLimit;

        skipBattlePrep = map.skipBattlePrep;
        preDialogue    = map.preDialogue;
        introDialogue  = map.introDialogue;
        endDialogue    = map.endDialogue;

        mapMusic = map.mapMusic;

        spawnPoints1 = new List <Position>();
        for (int i = 0; i < map.spawnPoints1.Count; i++)
        {
            spawnPoints1.Add(map.spawnPoints1[i]);
        }
        spawnPoints2 = new List <Position>();
        for (int i = 0; i < map.spawnPoints2.Count; i++)
        {
            spawnPoints2.Add(map.spawnPoints2[i]);
        }
        forcedCharacters = new List <CharEntry>();
        for (int i = 0; i < map.forcedCharacters.Count; i++)
        {
            forcedCharacters.Add(map.forcedCharacters[i]);
        }
        lockedCharacters = new List <CharEntry>();
        for (int i = 0; i < map.lockedCharacters.Count; i++)
        {
            lockedCharacters.Add(map.lockedCharacters[i]);
        }

        enemies = new List <SpawnData>();
        for (int i = 0; i < map.enemies.Count; i++)
        {
            enemies.Add(map.enemies[i]);
        }
        allies = new List <SpawnData>();
        for (int i = 0; i < map.allies.Count; i++)
        {
            allies.Add(map.allies[i]);
        }
        reinforcements = new List <SpawnData>();
        for (int i = 0; i < map.reinforcements.Count; i++)
        {
            reinforcements.Add(map.reinforcements[i]);
        }

        interactions = new List <InteractPosition>();
        for (int i = 0; i < map.interactions.Count; i++)
        {
            interactions.Add(map.interactions[i]);
        }

        triggerIds = new List <TriggerTuple>();
        for (int i = 0; i < map.triggerIds.Count; i++)
        {
            triggerIds.Add(map.triggerIds[i]);
        }
        triggerAreas = new List <TriggerArea>();
        for (int i = 0; i < map.triggerAreas.Count; i++)
        {
            triggerAreas.Add(map.triggerAreas[i]);
        }
        turnEvents = new List <TurnEvent>();
        for (int i = 0; i < map.turnEvents.Count; i++)
        {
            turnEvents.Add(map.turnEvents[i]);
        }
    }