Import improvement
Simen Kjaeraas
simen.kjaras at gmail.com
Mon Oct 15 07:29:00 PDT 2012
On 2012-43-15 14:10, Manu <turkeyman at gmail.com> wrote:
> module stache.states.ingamestate;
>
> import fuji: filesystem, render, matrix, material, primitive, system,
> font;
> import std: xml, string, conv, random, algorithm;
> import stache: game, battlecamera;
> import stache.i: statemachine, entity, collider;
> import stache.entity: combatant, paimei;
> import stache.thinkers: localplayer, nullthinker;
> import stache.sound: soundset, music;
> import stache.util.eventtypes;
Looks nice. Much better than before, certainly.
Now, i'm wondering, you /do/ know this is possible, right:
import fuji.filesystem, fuji.render, fuji.matrix, fuji.material,
fuji.primitive, fuji.system, fuji.font;
import std.xml, std.string, std.conv, std.random, std.algorithm;
import stache.game, stache.battlecamera;
import stache.i.statemachine, stache.i.entity, stache.i.collider;
import stache.entity.combatant, stache.entity.paimei;
import stache.thinkers.localplayer, stache.thinkers.nullthinker;
import stache.sound.soundset, stache.sound.music;
import stache.util.eventtypes;
Not quite as neat, but still a lot better, methinks.
--
Simen
More information about the Digitalmars-d
mailing list