private static LoadSigns ( |
||
reader | ||
return | void |
private static void LoadSigns(BinaryReader reader)
{
short num4 = reader.ReadInt16();
int index = 0;
while (index < num4)
{
Sign sign;
string str = reader.ReadString();
int num2 = reader.ReadInt32();
int num3 = reader.ReadInt32();
Tile tile = Main.tile[num2, num3];
if (tile.active() && ((tile.type == 0x37) || (tile.type == 0x55)))
{
sign = new Sign
{
text = str,
x = num2,
y = num3
};
}
else
{
sign = null;
}
Main.sign[index] = sign;
index++;
}
while (index < 0x3e8)
{
Main.sign[index] = null;
index++;
}
}