- Implemented Scripting Engine; Not fully completed - Migrated PlayerBasic from MudDesigner to MudEngine.
30 lines
677 B
C#
30 lines
677 B
C#
//Microsoft .NET Framework
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
//MUD Engine
|
|
using MudEngine.FileSystem;
|
|
|
|
namespace MudEngine.Scripting
|
|
{
|
|
public class GameObjectCollection
|
|
{
|
|
internal List<GameObject> _GameObjects;
|
|
|
|
public GameObjectCollection()
|
|
{
|
|
_GameObjects = new List<GameObject>();
|
|
}
|
|
|
|
public void Save(string filename)
|
|
{
|
|
FileManager.Save(filename, _GameObjects);
|
|
}
|
|
|
|
public void Load(string filename)
|
|
{
|
|
_GameObjects = (List<GameObject>)FileManager.Load(filename, _GameObjects);
|
|
}
|
|
}
|
|
}
|