
from entity import Entity,EIType
import network

class Building(Entity):
   eitype=EIType.building
   def __init__(self,*args,**kwargs):
      Entity.__init__(self)
      self.tile=kwargs['tile']
      self.owner=kwargs['owner']

class Home(Building):
   eitype=EIType.home
   def __init__(self,*args,**kwargs):
      Building.__init__(self,*args,**kwargs)
      self.owner.home=self
      self.bufferize({network.stc_new_home:{'eid':self.eid,'tileid':self.tile.eid}})#height, type etc

   def __delete__(self):
      del self.owner.home


49838fc0c48ac680b6f186862ab3cc8cc4546000
<mask token>


class Home(Building):
    eitype = EIType.home

    def __init__(self, *args, **kwargs):
        Building.__init__(self, *args, **kwargs)
        self.owner.home = self
        self.bufferize({network.stc_new_home: {'eid': self.eid, 'tileid':
            self.tile.eid}})

    def __delete__(self):
        del self.owner.home

<mask token>


class Building(Entity):
    <mask token>
    <mask token>


class Home(Building):
    eitype = EIType.home

    def __init__(self, *args, **kwargs):
        Building.__init__(self, *args, **kwargs)
        self.owner.home = self
        self.bufferize({network.stc_new_home: {'eid': self.eid, 'tileid':
            self.tile.eid}})

    def __delete__(self):
        del self.owner.home

<mask token>


class Building(Entity):
    eitype = EIType.building

    def __init__(self, *args, **kwargs):
        Entity.__init__(self)
        self.tile = kwargs['tile']
        self.owner = kwargs['owner']


class Home(Building):
    eitype = EIType.home

    def __init__(self, *args, **kwargs):
        Building.__init__(self, *args, **kwargs)
        self.owner.home = self
        self.bufferize({network.stc_new_home: {'eid': self.eid, 'tileid':
            self.tile.eid}})

    def __delete__(self):
        del self.owner.home

from entity import Entity, EIType
import network


class Building(Entity):
    eitype = EIType.building

    def __init__(self, *args, **kwargs):
        Entity.__init__(self)
        self.tile = kwargs['tile']
        self.owner = kwargs['owner']


class Home(Building):
    eitype = EIType.home

    def __init__(self, *args, **kwargs):
        Building.__init__(self, *args, **kwargs)
        self.owner.home = self
        self.bufferize({network.stc_new_home: {'eid': self.eid, 'tileid':
            self.tile.eid}})

    def __delete__(self):
        del self.owner.home


from entity import Entity,EIType
import network

class Building(Entity):
   eitype=EIType.building
   def __init__(self,*args,**kwargs):
      Entity.__init__(self)
      self.tile=kwargs['tile']
      self.owner=kwargs['owner']

class Home(Building):
   eitype=EIType.home
   def __init__(self,*args,**kwargs):
      Building.__init__(self,*args,**kwargs)
      self.owner.home=self
      self.bufferize({network.stc_new_home:{'eid':self.eid,'tileid':self.tile.eid}})#height, type etc

   def __delete__(self):
      del self.owner.home

