2 #include "IAttributeFields.h" 3 #include "util/unordered_array.hpp" 10 typedef DWORD RefMessage;
47 return this->m_object == r.m_object;
51 return this->m_object == r;
54 bool operator == (
const char* r);
78 virtual const std::string& GetIdentifier();
79 virtual void SetIdentifier(
const std::string& sID);
82 int GetNameW(std::u16string& out);
84 const std::string& GetName();
90 IRefObject* GetRefObjectByName(
const char* sName);
107 RefResult AddReference(
IRefObject* maker,
int nTag = 0);
117 RefResult DeleteAllRefs();
122 int DeleteAllRefsByTag(
int nTag = 0);
144 virtual void OnRefAdded(
IRefObject* rm,
int nTag=0);
when a reference object(caller) is deleted, it will send this message to all its references.
Definition: IRefObject.h:15
a referenced object
Definition: IRefObject.h:37
different physics engine has different winding order.
Definition: EventBinding.h:32
when a reference object add, it will send this message to all its references.
Definition: IRefObject.h:17
std::string m_sIdentifer
unit name used in the scripting language
Definition: IRefObject.h:72
A common interface for all classes implementing IAttributeFields By implementing this class's virtual...
Definition: IAttributeFields.h:59
REF_MESSAGE
Definition: IRefObject.h:11
RefList m_references
This is the list of active references that refer to us.
Definition: IRefObject.h:69
RefList & GetRefList()
get the ref list
Definition: IRefObject.h:125
unordered_array< RefListItem > RefList
reference list
Definition: IRefObject.h:57
bool HasReferences()
Definition: IRefObject.h:100
anything that makes references to other objects.
Definition: IRefObject.h:65