fCraft.LifeHandler.SetTorus C# (CSharp) Method

SetTorus() private static method

private static SetTorus ( Player p, Life2DZone life, string val ) : void
p Player
life Life2DZone
val string
return void
        private static void SetTorus( Player p, Life2DZone life, string val )
        {
            bool torus;
            if ( !bool.TryParse( val, out torus ) ) {
                p.Message( "&WExpected 'true' or 'false' as torus parameter value" );
                return;
            }
            life.Torus = torus;
            p.Message( "&yTorus param set to " + val );
        }