pub struct WorldSession<S: CellSource> {
pub partition: WorldPartition<S>,
pub camera: Vec2,
}Expand description
Welt plus der Kamera-Anker, den die Werkzeuge setzen. Die Partition selbst kennt keine Kamera (Kopflos-Kern) — für den Agenten gehört sie trotzdem zum Adressierbaren.
Fields§
§partition: WorldPartition<S>§camera: Vec2Kamerapunkt für tick und Abfragen.
Implementations§
Source§impl<S: CellSource> WorldSession<S>
impl<S: CellSource> WorldSession<S>
pub fn new(partition: WorldPartition<S>, camera: Vec2) -> Self
Auto Trait Implementations§
impl<S> Freeze for WorldSession<S>where
S: Freeze,
impl<S> RefUnwindSafe for WorldSession<S>where
S: RefUnwindSafe,
impl<S> Send for WorldSession<S>where
S: Send,
impl<S> Sync for WorldSession<S>where
S: Sync,
impl<S> Unpin for WorldSession<S>where
S: Unpin,
impl<S> UnsafeUnpin for WorldSession<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for WorldSession<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more