Scripting for a C#, multiplayer game
- by Vaughan Hilts
I have a multiplayer game written in C# and we've recently been creating a lot of content but have been looking for a way to give our entities customization logic that the designers can hook into. I took a look at this post. With something like this in mind (using C# as a scripting language); I have a few questions.
1) Would one embed the script itself in the entity object before persisting to it to the disk? Is this okay?
2) Would I compile once per scripting then - this seems like a lot of overhead to store all these compiled Assemblies to execute.
Any general advice on how to do thigns is welcome, too. These entities are generated on the fly inside the editor and could be composed of a lot of different things.