示例#1
0
        public void Add(CodeStatement code)
        {
            var x = codeList.Count * (128 + 10) + 10 + 64;
            var y = 10 + 16;
            code.Position = position + new Vector2(x, y);
            code.IsHUD = true;

            this.codeList.Add(code);
        }
示例#2
0
        public void Replace(CodeStatement code)
        {
            for (int i = 0; i < codeList.Count; i++)
            {
                codeList[i].RemoveGame(); ;
            }
            this.codeList.Clear();

            var x = codeList.Count * (128 + 10) + 10 + 64;
            var y = 10 + 16;
            code.Position = position + new Vector2(x, y);
            code.IsHUD = true;

            this.codeList.Add(code);
        }