from data.COMMON import * #essentials
Header(  0.001, 							#Script Version (for updates)
			('Nintendo',['mdl0','brmdl']),   #model activation
			('',[]),							#anim activation
			['revolution'],				#included libs
			['NTDO_IMG']) 					#image handlers

''' UMC model import/export script written by Tcll5850 '''

def ImportModel(FT,Cmd):

    def MTX44(): return [[1.0,0.0,0.0,0.0],[0.0,1.0,0.0,0.0],[0.0,0.0,1.0,0.0],[0.0,0.0,0.0,1.0]]

    def Offset_Name(offset):
        p=jump(offset-1,label=' -- String_Data')
        Str=string(bu8( label=' -- String_Length'))
        jump(p); return Str

    def RList(offset):

        #Nobody has helped me figure this area out,
        #brbx (the only correctly-structured/working src) is too confusing for me D:
        #Kryal hasn't returned since I asked
        #BJ isn't much help (I understand his area though.)
        #Toomai doesn't understand it that well (last I heard from him)
        #Bero disappeared <_< (he was on once lately, but not too lately as of now)
        #anyone else I talk to either has little knowledge, or doesn't care about it. >_<

        #I won't be able to build a working exporter until this area is figured out
        #at least importing can easily be loosely formatted for this... :P

        jump(offset,      label=' -- Resource_Group')
        group_len = bu32( label=' -- Resource_Group_Length')