Jump to content

[PapyrusDotNet] v0.1.4f1 - Generic Support!


zerratar

Recommended Posts

Hi again!

i'm not sure anymore if anyone is even interested in this project. I thought it would bring more people to start develop Mods for Skyrim but considering the lack of comments and all I'm no longer sure..

 

Anyway, new version is available. Generics works now! That means that you can create generic classes to be used for Skyrim!


example:

	public class GenericClass<T>
	{
		public T GenericVariable;

		public void Set(T value)
		{
			GenericVariable = value;
		}

		public T Get()
		{
			return GenericVariable;
		}
	}


The class: GenericClass<T> will compile into ex: GenericClass_Int

that is if you use for instance: GenericClass<int> intGeneric;

if you use any other for instance: GenericClass<Form> formGeneric; then a Form version of that code will be generated.

Which means that any Generic types will now be compiled into all of the types that it has been referenced as. Just make sure that you copy all the .pas files that are being generated from PapyrusDotNet to be able to use this properly. :)

/ Zerratar

Link to comment
Share on other sites

  • 7 months later...

I am quite excited about this project, I dont much care for the syntax of Papyrus, C-alike is where real coders stand. So providing me with a new language to mod Skyrim with is definitely a good thing. I haven't played Skyrim in over a year, so sorry about resurrecting zombie posts, but this was the newest relevent that I found iin the searches.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...