• Home
  • Raw
  • Download

Lines Matching refs:_accessor

60   public var __buffer: ByteBuffer! { return _accessor.bb }
61 private var _accessor: Struct variable
63 public init(_ bb: ByteBuffer, o: Int32) { _accessor = Struct(bb: bb, position: o) }
65 public var x: Float32 { return _accessor.readBuffer(of: Float32.self, at: 0) }
66 @discardableResult public func mutate(x: Float32) -> Bool { return _accessor.mutate(x, index: 0) } in mutate()
67 public var y: Float32 { return _accessor.readBuffer(of: Float32.self, at: 4) }
68 @discardableResult public func mutate(y: Float32) -> Bool { return _accessor.mutate(y, index: 4) } in mutate()
69 public var z: Float32 { return _accessor.readBuffer(of: Float32.self, at: 8) }
70 @discardableResult public func mutate(z: Float32) -> Bool { return _accessor.mutate(z, index: 8) } in mutate()
76 public var __buffer: ByteBuffer! { return _accessor.bb }
77 private var _accessor: Table variable
81 private init(_ t: Table) { _accessor = t }
82 public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
99 …blic var pos: MyGame_Sample_Vec3? { let o = _accessor.offset(VTOFFSET.pos.v); return o == 0 ? nil …
100 …_Mutable? { let o = _accessor.offset(VTOFFSET.pos.v); return o == 0 ? nil : MyGame_Sample_Vec3_Mut…
101 …public var mana: Int16 { let o = _accessor.offset(VTOFFSET.mana.v); return o == 0 ? 150 : _accesso…
102 … public func mutate(mana: Int16) -> Bool {let o = _accessor.offset(VTOFFSET.mana.v); return _acce… in mutate()
103 …public var hp: Int16 { let o = _accessor.offset(VTOFFSET.hp.v); return o == 0 ? 100 : _accessor.re…
104 …ult public func mutate(hp: Int16) -> Bool {let o = _accessor.offset(VTOFFSET.hp.v); return _acces… in mutate()
105 …public var name: String? { let o = _accessor.offset(VTOFFSET.name.v); return o == 0 ? nil : _acces…
106 public var nameSegmentArray: [UInt8]? { return _accessor.getVector(at: VTOFFSET.name.v) }
107 …ublic var inventoryCount: Int32 { let o = _accessor.offset(VTOFFSET.inventory.v); return o == 0 ? …
108 …-> UInt8 { let o = _accessor.offset(VTOFFSET.inventory.v); return o == 0 ? 0 : _accessor.directRea… in inventory()
109 public var inventory: [UInt8] { return _accessor.getVector(at: VTOFFSET.inventory.v) ?? [] }
110 …x: Int32) -> Bool { let o = _accessor.offset(VTOFFSET.inventory.v); return _accessor.directMutate(… in mutate()
111 …ame_Sample_Color { let o = _accessor.offset(VTOFFSET.color.v); return o == 0 ? .blue : MyGame_Samp…
112 …tate(color: MyGame_Sample_Color) -> Bool {let o = _accessor.offset(VTOFFSET.color.v); return _acc… in mutate()
113 …public var weaponsCount: Int32 { let o = _accessor.offset(VTOFFSET.weapons.v); return o == 0 ? 0 :…
114 …n? { let o = _accessor.offset(VTOFFSET.weapons.v); return o == 0 ? nil : MyGame_Sample_Weapon(_acc… in weapons()
115 …_Equipment { let o = _accessor.offset(VTOFFSET.equippedType.v); return o == 0 ? .none_ : MyGame_Sa…
116 …ializable>(type: T.Type) -> T? { let o = _accessor.offset(VTOFFSET.equipped.v); return o == 0 ? ni… in equipped<T: FlatbuffersInitializable>()
117 …public var pathCount: Int32 { let o = _accessor.offset(VTOFFSET.path.v); return o == 0 ? 0 : _acce…
118 …c3? { let o = _accessor.offset(VTOFFSET.path.v); return o == 0 ? nil : _accessor.directRead(of: My… in path()
119 …3_Mutable? { let o = _accessor.offset(VTOFFSET.path.v); return o == 0 ? nil : MyGame_Sample_Vec3_M… in mutablePath()
166 public var __buffer: ByteBuffer! { return _accessor.bb }
167 private var _accessor: Table variable
171 private init(_ t: Table) { _accessor = t }
172 public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
181 …public var name: String? { let o = _accessor.offset(VTOFFSET.name.v); return o == 0 ? nil : _acces…
182 public var nameSegmentArray: [UInt8]? { return _accessor.getVector(at: VTOFFSET.name.v) }
183 …public var damage: Int16 { let o = _accessor.offset(VTOFFSET.damage.v); return o == 0 ? 0 : _acces…
184 …blic func mutate(damage: Int16) -> Bool {let o = _accessor.offset(VTOFFSET.damage.v); return _acc… in mutate()