mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-23 02:40:26 +01:00
27 lines
612 B
C++
27 lines
612 B
C++
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
#ifndef SE_INCL_CHANGEABLE_H
|
|
#define SE_INCL_CHANGEABLE_H
|
|
#ifdef PRAGMA_ONCE
|
|
#pragma once
|
|
#endif
|
|
|
|
/*
|
|
* Object that can change in time.
|
|
*/
|
|
class ENGINE_API CChangeable {
|
|
private:
|
|
TIME ch_LastChangeTime; // last time this object has been changed
|
|
public:
|
|
/* Constructor. */
|
|
CChangeable(void);
|
|
/* Mark that something has changed in this object. */
|
|
void MarkChanged(void);
|
|
/* Test if some updateable object is up to date with this changeable. */
|
|
BOOL IsUpToDate(const CUpdateable &ud) const;
|
|
};
|
|
|
|
|
|
#endif /* include-once check. */
|
|
|