Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
Add difficulty.
Commit Description:
Add difficulty.
using Encompass ;
using isometricparkfna.Messages ;
using isometricparkfna.Components ;
namespace isometricparkfna.Engines
{
[Receives(typeof(GameStateMessage))]
[Sends(typeof(ToggleWindowTypeMessage))]
[Reads(typeof(GameStateComponent))]
[Writes(typeof(GameStateComponent))]
class GameStateEngine : Engine
{
public override void Update ( double dt )
{
foreach ( var message in ReadMessages < GameStateMessage >())
{
if ( message . isPlaying )
{
startGame ();
}
foreach ( var entity in ReadEntities < GameStateComponent >())
{
var state = GetComponent < GameStateComponent >( entity ). isPlaying ;
Logging . Spy ( state , "state" );
SetComponent ( entity , new GameStateComponent { isPlaying = message . isPlaying });
}
}
}
public void startGame ()
{
}
}
}
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings