source: 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/ISelectable.cs @ 2144

Revision 2141, 831 bytes checked in by sijoseha, 8 years ago (diff)

Whoa. A lot of stuff since last commit.
Implemented ScreenManager? stuff to handle all the screens.
Input is handled also.
Simple tile based map system started up.
Normal menu.
Alotofsmallstuff

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace Fera_Proelia
7{
8    public class SelectedGameObjectEventArgs : EventArgs
9    {
10        public SelectedGameObjectEventArgs(GameObject gameObject)
11        {
12            this.gameObject = gameObject;
13        }
14
15        public GameObject GameObject { get { return gameObject; } }
16        GameObject gameObject;
17    }
18
19    public class SelectedEventArgs<T> : EventArgs
20    {
21        public SelectedEventArgs(T selection)
22        {
23            this.selection = selection;
24        }
25        public T Selection { get { return selection; } }
26        T selection;
27    }
28
29    interface ISelectable<T>
30    {
31        bool IsSelected { get; set; }
32        event EventHandler<SelectedEventArgs<T>> Selected;
33    }
34}
Note: See TracBrowser for help on using the repository browser.