Exemplo n.º 1
0
 public Object(byte area, int level, byte act, byte model, int bparams, int behaviour, ObjectPosition position, ObjectRotation rotation, int addr)
 {
     this.area      = area;
     this.level     = level;
     this.behaviour = behaviour;
     this.addr      = addr;
     this.position  = position;
     this.rotation  = rotation;
     this.act       = act;
     this.model     = model;
     this.bparams   = bparams;
 }
Exemplo n.º 2
0
        public Object(byte area, int level, ROM rom, int addr)
        {
            this.area  = area;
            this.level = level;

            rom.PushOffset(addr);

            position  = new ObjectPosition(rom);
            rotation  = new ObjectRotation(rom);
            act       = rom.Read8(2);
            model     = rom.Read8(3);
            bparams   = rom.Read32(16);
            behaviour = rom.Read32(20);
            this.addr = addr;

            rom.PopOffset();
        }