/// <summary> /// Create the start data necessary for the event. /// </summary> /// <param name="SongToPlay">The name of the song to play.</param> /// <param name="CameraTileX">The starting xtile for the camera</param> /// <param name="CameraTileY">The starting y tile for the camera</param> /// <param name="Farmer">The farmer data for the event. If null then the farmer won't be in this event.</param> /// <param name="NPCS">The npc data for the event. If null then no npcs will be in the event.</param> public EventStartData(string SongToPlay, int CameraTileX, int CameraTileY, FarmerData Farmer, List <NPCData> NPCS) { this.builder = new StringBuilder(); this.add(SongToPlay); this.add(CameraTileX.ToString()); this.builder.Append(" "); this.builder.Append(CameraTileY.ToString()); StringBuilder npcData = new StringBuilder(); if (Farmer != null) { npcData.Append(Farmer.ToString()); } if (NPCS != null) { foreach (var v in NPCS) { npcData.Append(" "); npcData.Append(v.ToString()); } } this.add(npcData.ToString()); this.add("skippable"); }
/// <summary> /// Create the start data necessary for the event. /// </summary> /// <param name="MusicType">A special type to determine what music is played. None or Continue.</param> /// <param name="CameraTileX">The starting xtile for the camera</param> /// <param name="CameraTileY">The starting y tile for the camera</param> /// <param name="Farmer">The farmer data for the event. If null then the farmer won't be in this event.</param> /// <param name="NPCS">The npc data for the event. If null then no npcs will be in the event.</param> public EventStartData(MusicToPlayType MusicType, int CameraTileX, int CameraTileY, FarmerData Farmer, List <NPCData> NPCS) { this.builder = new StringBuilder(); if (MusicType == MusicToPlayType.None) { this.add("none"); } if (MusicType == MusicToPlayType.Continue) { this.add("continue"); } this.add(CameraTileX.ToString()); this.builder.Append(" "); this.builder.Append(CameraTileY.ToString()); StringBuilder npcData = new StringBuilder(); if (Farmer != null) { npcData.Append(Farmer.ToString()); } if (NPCS != null) { foreach (var v in NPCS) { npcData.Append(" "); npcData.Append(v.ToString()); } } this.add(npcData.ToString()); this.add("skippable"); }