Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/Simulation2.cpp
/* Copyright (C) 2019 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 695 Lines • ▼ Show 20 Lines | IComponent* CSimulation2::QueryInterface(entity_id_t ent, int iid) const | ||||
return m->m_ComponentManager.QueryInterface(ent, iid); | return m->m_ComponentManager.QueryInterface(ent, iid); | ||||
} | } | ||||
void CSimulation2::PostMessage(entity_id_t ent, const CMessage& msg) const | void CSimulation2::PostMessage(entity_id_t ent, const CMessage& msg) const | ||||
{ | { | ||||
m->m_ComponentManager.PostMessage(ent, msg); | m->m_ComponentManager.PostMessage(ent, msg); | ||||
} | } | ||||
void CSimulation2::DistributeMessage(const std::vector<entity_id_t>& entities, const CMessage& msg) const | |||||
{ | |||||
m->m_ComponentManager.DistributeMessage(entities, msg); | |||||
} | |||||
void CSimulation2::BroadcastMessage(const CMessage& msg) const | void CSimulation2::BroadcastMessage(const CMessage& msg) const | ||||
{ | { | ||||
m->m_ComponentManager.BroadcastMessage(msg); | m->m_ComponentManager.BroadcastMessage(msg); | ||||
} | } | ||||
CSimulation2::InterfaceList CSimulation2::GetEntitiesWithInterface(int iid) | CSimulation2::InterfaceList CSimulation2::GetEntitiesWithInterface(int iid) | ||||
{ | { | ||||
return m->m_ComponentManager.GetEntitiesWithInterface(iid); | return m->m_ComponentManager.GetEntitiesWithInterface(iid); | ||||
▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator