"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.viewStruct = void 0;
const Z64CORE = __importStar(require("../importsZ64"));
class viewStruct {
    ModLoader;
    constructor(ModLoader) {
        this.ModLoader = ModLoader;
    }
    get VIEW() {
        return this.ModLoader.emulator.rdramReadPtrBuffer(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8, 4).toString('ascii');
    }
    get gfx_ctx_pointer() {
        return this.ModLoader.emulator.rdramReadPtr32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x04);
    }
    set gfx_ctx_pointer(pointer) {
        this.ModLoader.emulator.rdramWritePtr32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x04, pointer);
    }
    get fov() {
        return this.ModLoader.emulator.rdramReadPtrF32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x18);
    }
    set fov(rhs) {
        this.ModLoader.emulator.rdramWritePtrF32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x18, rhs);
    }
    get near_clip() {
        return this.ModLoader.emulator.rdramReadPtrF32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x1C);
    }
    set near_clip(rhs) {
        this.ModLoader.emulator.rdramWritePtrF32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x1C, rhs);
    }
    get far_clip() {
        return this.ModLoader.emulator.rdramReadPtrF32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x20);
    }
    set far_clip(rhs) {
        this.ModLoader.emulator.rdramWritePtrF32(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x20, rhs);
    }
    get position() {
        return this.ModLoader.math.rdramReadPtrV3(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x28);
    }
    get focus() {
        return this.ModLoader.math.rdramReadPtrV3(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x34);
    }
    get axis() {
        return this.ModLoader.math.rdramReadPtrV3(Z64CORE.Z64.Z64_GLOBAL_PTR, 0xB8 + 0x40);
    }
}
exports.viewStruct = viewStruct;
//# sourceMappingURL=viewStruct.js.map