Skyline二次开发-如何在现有的fly工程中用API加载TG发布的mpt

我们可以通过API来打开mpt,代码如下:

SGWorld66.Open("[email protected]:82");

如果我们已经有Fly工程,想在fly工程中加载TG发布的mpt,代码如下:

SGWorld66.Creator.CreateImageryLayer("sample.MPT", 0.0, 0.0, 0.0, 0.0, "<EXT><ExtInfo><![CDATA[<Skyline version=\"1.0.0\"><ServerList name=\"sample.MPT\"><Server priority=\"1\">192.168.203.48:82$</Server></ServerList></Skyline>]]></ExtInfo><ExtType>mpt</ExtType></EXT>", "mptplg.rct");


猜你喜欢

转载自blog.csdn.net/xiaofan5546/article/details/80337277