private static CoreEvent generateRessourceEvent(Ressource.TYPE iRes, int iValue) { CoreEvent e = new CoreEvent(); WorldEffector we = new WorldEffector( new Dictionary <Ressource.TYPE, int>() { { iRes, iValue } } ); e.worldEffector = we; return(e); }
//------------------------------------------------------------------------- // ============================================================================== private static CoreEvent generateWorldStatEvent(World.STATS iStat, int iValue) { CoreEvent e = new CoreEvent(); WorldEffector we = new WorldEffector( new Dictionary <World.STATS, int>() { { iStat, iValue } } ); e.worldEffector = we; return(e); }
public static CoreEvent generateTestEvent() { CoreEvent testEvent = new CoreEvent(); WorldEffector testWE = new WorldEffector( new Dictionary <Ressource.TYPE, int>() { { Ressource.TYPE.IRON, 1 }, { Ressource.TYPE.WOOD, -5 } }, new Dictionary <World.STATS, int>() { { World.STATS.HUNGER, 1 }, { World.STATS.HAPPINESS, 2 } } ); testEvent.worldEffector = testWE; return(testEvent); }