Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/Simulation2.h
/* 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 187 Lines • ▼ Show 20 Lines | public: | ||||
* This is called automatically by Update, but should also be called at other | * This is called automatically by Update, but should also be called at other | ||||
* times when an entity might have been deleted and should be removed from | * times when an entity might have been deleted and should be removed from | ||||
* any further processing (e.g. after editor UI message processing) | * any further processing (e.g. after editor UI message processing) | ||||
*/ | */ | ||||
void FlushDestroyedEntities(); | void FlushDestroyedEntities(); | ||||
IComponent* QueryInterface(entity_id_t ent, int iid) const; | IComponent* QueryInterface(entity_id_t ent, int iid) const; | ||||
void PostMessage(entity_id_t ent, const CMessage& msg) const; | void PostMessage(entity_id_t ent, const CMessage& msg) const; | ||||
void DistributeMessage(const std::vector<entity_id_t>& entities, const CMessage& msg) const; | |||||
void BroadcastMessage(const CMessage& msg) const; | void BroadcastMessage(const CMessage& msg) const; | ||||
using InterfaceList = | using InterfaceList = | ||||
std::vector<std::pair<entity_id_t, IComponent*> >; | std::vector<std::pair<entity_id_t, IComponent*> >; | ||||
using InterfaceListUnordered = | using InterfaceListUnordered = | ||||
std::unordered_map<entity_id_t, IComponent*>; | std::unordered_map<entity_id_t, IComponent*>; | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator