public twp.app.resource.Engineer[] engineer = new twp.app.resource.Engineer[(int)twp.app.city.EAreaDefLimit.LIMIT_MAX_AREA_COUNT]; //工程师

                public void FromBin(NetSocket.ByteArray bin)
                {
                    for (UInt16 i = 0; i < (UInt16)twp.app.city.EAreaDefLimit.LIMIT_MAX_AREA_COUNT; ++i) {
                        resource [i] = new twp.app.resource.Resource ();
                        resource [i].FromBin (bin);
                    }

                    for (UInt16 i = 0; i < (UInt16)twp.app.city.EAreaDefLimit.LIMIT_MAX_AREA_COUNT; ++i) {
                        engineer [i] = new twp.app.resource.Engineer ();
                        engineer [i].FromBin (bin);
                    }
                }
Ejemplo n.º 2
0
                public twp.app.resource.Engineer[] engineer = new twp.app.resource.Engineer[(int)twp.app.city.EAreaDefLimit.LIMIT_MAX_AREA_COUNT]; //工程师

                public void FromBin(NetSocket.ByteArray bin)
                {
                    for (UInt16 i = 0; i < (UInt16)twp.app.city.EAreaDefLimit.LIMIT_MAX_AREA_COUNT; ++i)
                    {
                        resource [i] = new twp.app.resource.Resource();
                        resource [i].FromBin(bin);
                    }

                    for (UInt16 i = 0; i < (UInt16)twp.app.city.EAreaDefLimit.LIMIT_MAX_AREA_COUNT; ++i)
                    {
                        engineer [i] = new twp.app.resource.Engineer();
                        engineer [i].FromBin(bin);
                    }
                }