Before posting anything at forums, make sure that you understand what you are trying to do and learn the basic concepts.
Also, when asking for help related to code, it is recommended to post the actual code you have rather than posting it as link to image. Please remember that not all can access the link or it might be broken for some reasons.
Looking at the error, it seems that you were trying to create a class and define a method that returns an object. To define a class, you can do something like this:
namespace Engine
{
publicclass Quest
{
publicint Id { get; set; }
publicstring Name { get; set; }
publicstring Description { get; set; }
//add more properties here
}
}
You can then create a method that returns a Quest object like this:
public Quest GetQuest(int id, string name, string description){
Quest quest = new Quest();
quest.Id = id;
quest.Name = name;
quest.Description = description;
return quest;
}
For more information, I'd suggest you to refer to online articles about "classes,methods, properties and access modifiers". Here's one i found in google: https://www.completecsharptutorial.com/basic/function-or-method.php
Vincent Maverick DuranoPosted Aug 15, 2018, 9:57 PM
fleurke jansenPosted Aug 15, 2018, 2:04 PM
Vincent Maverick DuranoPosted Aug 15, 2018, 1:53 PM