// Default callback for OnCast // IN: (wizard) The wizard casting the spell, (speed) The speed of the casting wand action // (wand) The state of the wand at the time of casting // OUT: (int) Meaningless private static int DefaultCast( short wizard, float speed, WandInformation wand ) { return 0; }
// Scene callback for OnCast, sends cast command to wizards // IN: (wizard) The wizard casting the spell, (speed) The speed of the casting wand action // (wand) The state of the wand at the time of casting // OUT: (int) Meaningless private int OnCast( short wizard, float speed, WandInformation wand ) { Wizards[wizard].TryToCastSpell(); return 0; }