MudEngine:
- Implemented Scripting Engine; Not fully completed - Migrated PlayerBasic from MudDesigner to MudEngine.
This commit is contained in:
parent
d40b8690d5
commit
35c10eed68
7 changed files with 339 additions and 1 deletions
30
MudEngine/Scripting/GameObjectCollection.cs
Normal file
30
MudEngine/Scripting/GameObjectCollection.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
//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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue