source: 2014/24/EemeliK/Zombieland/Jypeli/GameObjects/Destroyable.cs @ 5974

Revision 5974, 540 bytes checked in by empaheik, 4 years ago (diff)
Line 
1using System;
2
3namespace Jypeli
4{
5    /// <summary>
6    /// Rajapinta olioille, jotka ovat tuhottavissa.
7    /// </summary>
8    public interface Destroyable
9    {
10        bool IsDestroyed { get; }
11        event Action Destroyed;
12        void Destroy();
13    }
14
15    /// <summary>
16    /// Rajapinta olioille, joiden tuhoaminen kestää seuraavaan päivitykseen.
17    /// </summary>
18    public interface DelayedDestroyable : Destroyable
19    {
20        bool IsDestroying { get; }
21        event Action Destroying;
22    }
23}
Note: See TracBrowser for help on using the repository browser.