static void Main( string[] args ) { var option = new EngineOption { GraphicsType = GraphicsType.DirectX11, IsFullScreen = false }; Engine.Initialize( "ペルマニズム", 800, 600, option ); var model = new PlayingFlow(); var channel = new Channel<IMessage>( model.Run() ); var scene = new Scene(); var layer = new UI.TableLayer( model ); var view = new TableView( channel, layer ); scene.AddLayer(layer); Engine.ChangeScene( scene ); var channelTask = channel.RunAsync(); while( Engine.DoEvents() && !IsFinished ) { Engine.Update(); } Engine.Terminate(); }
public TableLayer( PlayingFlow playingFlow ) { playingFlow.Cards.CollectionChanged += Cards_CollectionChanged; state = new NeutralState( this ); }