Brunot
Loading...
Searching...
No Matches
GameObject.cpp File Reference
#include "GameObject.h"
#include "Engine.h"
#include "System/Messaging.h"
Include dependency graph for GameObject.cpp:

Functions

auto operator< (const GameObject::Key &lhs, const GameObject::Key &rhs) ->bool

Function Documentation

◆ operator<()

auto operator< ( const GameObject::Key & lhs,
const GameObject::Key & rhs )->bool

Less than means that the type, and subtype (if applicable) comes before the others type and subtype in the type and subtype enums. In the cases where type and subtype are equal, then UUID is used for comparison, and the object with the lower UUID (created first) is treated as lower.

Parameters
lhs
rhs
Returns
whether the lhs is "less" than rhs

@todo: turn this into a non branching comparison @todo: check this logic on same subtype but different types of objects (may not be necessary as we only store one type in a container /e usually )