mirror of
https://github.com/Alee14/OpenHacknet.git
synced 2025-01-22 09:12:44 -05:00
32 lines
No EOL
614 B
C#
32 lines
No EOL
614 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Hacknet
|
|
{
|
|
[Serializable]
|
|
public class SaveData
|
|
{
|
|
private ActiveMission mission;
|
|
private List<Computer> nodes;
|
|
|
|
public void addNodes(object nodesToAdd)
|
|
{
|
|
nodes = (List<Computer>) nodesToAdd;
|
|
}
|
|
|
|
public void setMission(object missionToAdd)
|
|
{
|
|
mission = (ActiveMission) missionToAdd;
|
|
}
|
|
|
|
public object getNodes()
|
|
{
|
|
return nodes;
|
|
}
|
|
|
|
public object getMission()
|
|
{
|
|
return mission;
|
|
}
|
|
}
|
|
} |