예제 #1
0
        public void LoadSummon(CChar c, CTile t)
        {
            var builder = new CharViewBuilder();

            c.SetView(builder.Build(c.Proxy));
            this.RenderChar(c, t);
        }
예제 #2
0
        private void InitViews(CMap map, MapInitInfo info)
        {
            var builder = new CharViewBuilder();

            foreach (var party in map.GetLParties())
            {
                foreach (var c in party.GetChars())
                {
                    c.SetView(builder.Build(c.Proxy));
                    var tile = map.GetMap().GetTileForRow(c.Proxy.LParty, c.Proxy.StartCol);
                    this.RenderChar(c, tile);
                }
            }
            foreach (var party in map.GetRParties())
            {
                foreach (var c in party.GetChars())
                {
                    c.SetView(builder.Build(c.Proxy));
                    var tile = map.GetMap().GetTileForRow(c.Proxy.LParty, c.Proxy.StartCol);
                    this.RenderChar(c, tile);
                }
            }
        }