NorbiPeti
dba7c0a46f
Added an event for placing and removing blocks Added a class to wrap event calls in a try-catch Removed BlockDoesNotExistException Made Block.GetSimBody() return null if block doesn't exist
43 lines
731 B
C#
43 lines
731 B
C#
using System;
|
|
|
|
using GamecraftModdingAPI;
|
|
|
|
namespace GamecraftModdingAPI.Blocks
|
|
{
|
|
public class BlockException : GamecraftModdingAPIException
|
|
{
|
|
public BlockException()
|
|
{
|
|
}
|
|
|
|
public BlockException(System.String message) : base(message)
|
|
{
|
|
}
|
|
|
|
public BlockException(System.String message, Exception innerException) : base(message, innerException)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class BlockTypeException : BlockException
|
|
{
|
|
public BlockTypeException()
|
|
{
|
|
}
|
|
|
|
public BlockTypeException(string message) : base(message)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class BlockSpecializationException : BlockException
|
|
{
|
|
public BlockSpecializationException()
|
|
{
|
|
}
|
|
|
|
public BlockSpecializationException(string message) : base(message)
|
|
{
|
|
}
|
|
}
|
|
}
|