Thread: l2c# [dev] team
View Single Post
Old 06.10.2006, 21:43   #57
Sindol
Архивный участник
 
Join Date: Oct 2005
Posts: 21
Default

This is the way I think most emulators should be handled now in regard to scripts. Some devs, like those of RunUO have been using a similar method forever, albiet only at run time. With reflection in .NET its easy to accomplish this to be handled on the fly, you can even set up a watcher thread that automagically rebuilds a compiled assembly when ever its code file is changed or you can go way out there, I had set a goal to allow classes to be added dynamically to my assembly via an in game text editor accessible by devs. My original goal was to use this feature for tracing and debugging, but there's nothing stoping a person from using a similar method to add dynamic content on the fly for events, ect ...

Quote:
Originally Posted by karioth View Post
I understand that. Now I wanna take the maximum from C# and .net frmwrk. I wanna make server structure modular and have ability to replace or add modules (action, spell, quest, drop handlers and etc.) on the fly without server rebooting.
Server will be able itself to build C# module sources from some scripts (not from off server), compile it and add (or replace old) module handlers to global spell, drop, item, quest handlers.
Sindol is offline