lundi 7 mars 2016

How to setup a Sqlite3 Model Class Generation class for use in Unity 5+

So First off I would like to start this question with what I am trying to do and what I am currently using and the environment that I am trying to accomplish. Currently I am working with Unity 5.3. I am trying to write a Database System for an RPG game that my company and I are developing. While designing and developing this database system we made the decision to use Sqlite and handling our items/actors/enemies....

The issue is not really necessarily the ability to convert all these base classes to model classes and have proper converting methods to handle converting to and from database fields. This question is more about how to handle in Unity using C# to generate model classes directly either with a class wrapper to convert the classes to database supported model classes programmatically and efficiently.

I Love to write clean, simple, and effective code. I decided to take a base library that I used as a base for my SQLite database handling interactions and write a full wrapper class to handle these interactions more cleanly and effectively. the want to incorporate this system into that wrapper, I have been stumped on this issue for quite a while now, Thus the reason I created a stackoverflow account to post my question for this. From someone who loves coding and has been coding since 2004, stackoverflow has helped me so much just by researching other peoples questions and answers. So thank you all! I Hope someone can help me overcome this roadblock so that I can proceed with my system =)

TLDR: I want to generate Sqlite Database Model Classes Programmatically using C# for the use of a Database system in Unity.

Upon request I will post Code Snippets and such with any questions or implementations as soon as I get any messages or responses requiring that.

My Current Environment and the library base that I used.

Unity 5.3.2 C# 4 (Unity subset)

The SQLite library that I used is SQLite4Unity3d - http://ift.tt/1LXCSZb

(Also Note: I apologize if my question and information is too long or needs to clarified I will be more than happy to accommodate if and when needed. This is my first question ever of my 12 years of coding experience.. So I may handle it oddly. SORRY! )

Aucun commentaire:

Enregistrer un commentaire