import files
import os

class Object:
    def __init__(self, owner, file):
        settings = files.loadFromFile('objects\\%s.obj'%file)
            
        # iterate through dict
        for k in settings.keys():
            if k=="Name":
                self.name = settings[k]
            if k=="Type":
                self.type = settings[k]

        self.id = int(file)
        self.owner = owner
        
    def save(self):
        f = open("objects\\%i.obj"%self.id,'w')
        f.write('Name:%s\n'%self.name)
        f.close()
fbe772a0be4a8e35f447a55730eeaa87d6a7df4d
<mask token>


class Object:
    <mask token>
    <mask token>

<mask token>


class Object:

    def __init__(self, owner, file):
        settings = files.loadFromFile('objects\\%s.obj' % file)
        for k in settings.keys():
            if k == 'Name':
                self.name = settings[k]
            if k == 'Type':
                self.type = settings[k]
        self.id = int(file)
        self.owner = owner
    <mask token>

<mask token>


class Object:

    def __init__(self, owner, file):
        settings = files.loadFromFile('objects\\%s.obj' % file)
        for k in settings.keys():
            if k == 'Name':
                self.name = settings[k]
            if k == 'Type':
                self.type = settings[k]
        self.id = int(file)
        self.owner = owner

    def save(self):
        f = open('objects\\%i.obj' % self.id, 'w')
        f.write('Name:%s\n' % self.name)
        f.close()

import files
import os


class Object:

    def __init__(self, owner, file):
        settings = files.loadFromFile('objects\\%s.obj' % file)
        for k in settings.keys():
            if k == 'Name':
                self.name = settings[k]
            if k == 'Type':
                self.type = settings[k]
        self.id = int(file)
        self.owner = owner

    def save(self):
        f = open('objects\\%i.obj' % self.id, 'w')
        f.write('Name:%s\n' % self.name)
        f.close()

import files
import os

class Object:
    def __init__(self, owner, file):
        settings = files.loadFromFile('objects\\%s.obj'%file)
            
        # iterate through dict
        for k in settings.keys():
            if k=="Name":
                self.name = settings[k]
            if k=="Type":
                self.type = settings[k]

        self.id = int(file)
        self.owner = owner
        
    def save(self):
        f = open("objects\\%i.obj"%self.id,'w')
        f.write('Name:%s\n'%self.name)
        f.close()