public AvatarCommander(LuaExecutor ex, IAtlas atlas) { m_atlas = atlas; ex.State.RegisterFunction("Vector", typeof(AtlasManipulator).GetMethod("Vector")); m_currentAvatar = atlas.Avatars.Values.First(); ex.State["avatar"] = m_currentAvatar; m_le = ex; }
public LuaConsole(ToyWorld toyWorld, IAtlas atlas) { InitializeComponent(); toyWorld.ToyWorldDisposed += CloseConsole; outputListBox.DataSource = m_inputOutputList; m_lex = new LuaExecutor(atlas, this); m_inputOutputList.Add(INVITATION_MESSAGE); ResetBox(); }