public void InsertSignpost(signpost toinsert) { Logger.InfoFormat("Inserting signpost {0}@{1},{2}", toinsert.map.name, toinsert.map_x, toinsert.map_y); var post = new Signpost(toinsert); World.Insert(post); Insert(post, post.X, post.Y); Signposts[new Tuple <byte, byte>(post.X, post.Y)] = post; }
public Signpost(signpost post) { Data = post; X = (byte)post.map_x; Y = (byte)post.map_y; }
public void InsertSignpost(signpost toinsert) { Logger.InfoFormat("Inserting signpost {0}@{1},{2}", toinsert.map.name, toinsert.map_x, toinsert.map_y); var post = new Signpost(toinsert); World.Insert(post); Insert(post, post.X, post.Y); Signposts[new Tuple<byte, byte>(post.X, post.Y)] = post; }