示例#1
0
        public void CopyFrom(Model src)
        {
            name              = src.name;
            needload          = src.needload;
            type              = src.type;
            numframes         = src.numframes;
            synctype          = src.synctype;
            flags             = src.flags;
            mins              = src.mins;
            maxs              = src.maxs;
            radius            = src.radius;
            clipbox           = src.clipbox;
            clipmins          = src.clipmins;
            clipmaxs          = src.clipmaxs;
            firstmodelsurface = src.firstmodelsurface;
            nummodelsurfaces  = src.nummodelsurfaces;

            numsubmodels = src.numsubmodels;
            submodels    = src.submodels;

            numplanes = src.numplanes;
            planes    = src.planes;

            numleafs = src.numleafs;
            leafs    = src.leafs;

            numvertexes = src.numvertexes;
            vertexes    = src.vertexes;

            numedges = src.numedges;
            edges    = src.edges;

            numnodes = src.numnodes;
            nodes    = src.nodes;

            numtexinfo = src.numtexinfo;
            texinfo    = src.texinfo;

            numsurfaces = src.numsurfaces;
            surfaces    = src.surfaces;

            numsurfedges = src.numsurfedges;
            surfedges    = src.surfedges;

            numclipnodes = src.numclipnodes;
            clipnodes    = src.clipnodes;

            nummarksurfaces = src.nummarksurfaces;
            marksurfaces    = src.marksurfaces;

            for (int i = 0; i < src.hulls.Length; i++)
            {
                hulls[i].CopyFrom(src.hulls[i]);
            }

            numtextures = src.numtextures;
            textures    = src.textures;

            visdata   = src.visdata;
            lightdata = src.lightdata;
            entities  = src.entities;

            cache = src.cache;
        }
示例#2
0
        public void Clear()
        {
            name              = null;
            needload          = false;
            type              = 0;
            numframes         = 0;
            synctype          = 0;
            flags             = 0;
            mins              = Vector3.Zero;
            maxs              = Vector3.Zero;
            radius            = 0;
            clipbox           = false;
            clipmins          = Vector3.Zero;
            clipmaxs          = Vector3.Zero;
            firstmodelsurface = 0;
            nummodelsurfaces  = 0;

            numsubmodels = 0;
            submodels    = null;

            numplanes = 0;
            planes    = null;

            numleafs = 0;
            leafs    = null;

            numvertexes = 0;
            vertexes    = null;

            numedges = 0;
            edges    = null;

            numnodes = 0;
            nodes    = null;

            numtexinfo = 0;
            texinfo    = null;

            numsurfaces = 0;
            surfaces    = null;

            numsurfedges = 0;
            surfedges    = null;

            numclipnodes = 0;
            clipnodes    = null;

            nummarksurfaces = 0;
            marksurfaces    = null;

            foreach (hull_t h in hulls)
            {
                h.Clear();
            }

            numtextures = 0;
            textures    = null;

            visdata   = null;
            lightdata = null;
            entities  = null;

            cache = null;
        }
示例#3
0
        public void CopyFrom(model_t src)
        {
            this.name              = src.name;
            this.needload          = src.needload;
            this.type              = src.type;
            this.numframes         = src.numframes;
            this.synctype          = src.synctype;
            this.flags             = src.flags;
            this.mins              = src.mins;
            this.maxs              = src.maxs;
            this.radius            = src.radius;
            this.clipbox           = src.clipbox;
            this.clipmins          = src.clipmins;
            this.clipmaxs          = src.clipmaxs;
            this.firstmodelsurface = src.firstmodelsurface;
            this.nummodelsurfaces  = src.nummodelsurfaces;

            this.numsubmodels = src.numsubmodels;
            this.submodels    = src.submodels;

            this.numplanes = src.numplanes;
            this.planes    = src.planes;

            this.numleafs = src.numleafs;
            this.leafs    = src.leafs;

            this.numvertexes = src.numvertexes;
            this.vertexes    = src.vertexes;

            this.numedges = src.numedges;
            this.edges    = src.edges;

            this.numnodes = src.numnodes;
            this.nodes    = src.nodes;

            this.numtexinfo = src.numtexinfo;
            this.texinfo    = src.texinfo;

            this.numsurfaces = src.numsurfaces;
            this.surfaces    = src.surfaces;

            this.numsurfedges = src.numsurfedges;
            this.surfedges    = src.surfedges;

            this.numclipnodes = src.numclipnodes;
            this.clipnodes    = src.clipnodes;

            this.nummarksurfaces = src.nummarksurfaces;
            this.marksurfaces    = src.marksurfaces;

            for (int i = 0; i < src.hulls.Length; i++)
            {
                this.hulls[i].CopyFrom(src.hulls[i]);
            }

            this.numtextures = src.numtextures;
            this.textures    = src.textures;

            this.visdata   = src.visdata;
            this.lightdata = src.lightdata;
            this.entities  = src.entities;

            this.cache = src.cache;
        }
示例#4
0
        public void Clear()
        {
            this.name              = null;
            this.needload          = false;
            this.type              = 0;
            this.numframes         = 0;
            this.synctype          = 0;
            this.flags             = 0;
            this.mins              = Vector3.Zero;
            this.maxs              = Vector3.Zero;
            this.radius            = 0;
            this.clipbox           = false;
            this.clipmins          = Vector3.Zero;
            this.clipmaxs          = Vector3.Zero;
            this.firstmodelsurface = 0;
            this.nummodelsurfaces  = 0;

            this.numsubmodels = 0;
            this.submodels    = null;

            this.numplanes = 0;
            this.planes    = null;

            this.numleafs = 0;
            this.leafs    = null;

            this.numvertexes = 0;
            this.vertexes    = null;

            this.numedges = 0;
            this.edges    = null;

            this.numnodes = 0;
            this.nodes    = null;

            this.numtexinfo = 0;
            this.texinfo    = null;

            this.numsurfaces = 0;
            this.surfaces    = null;

            this.numsurfedges = 0;
            this.surfedges    = null;

            this.numclipnodes = 0;
            this.clipnodes    = null;

            this.nummarksurfaces = 0;
            this.marksurfaces    = null;

            foreach (hull_t h in this.hulls)
            {
                h.Clear();
            }

            this.numtextures = 0;
            this.textures    = null;

            this.visdata   = null;
            this.lightdata = null;
            this.entities  = null;

            this.cache = null;
        }
示例#5
0
        public void CopyFrom(model_t src)
        {
            this.name = src.name;
            this.needload = src.needload;
            this.type = src.type;
            this.numframes = src.numframes;
            this.synctype = src.synctype;
            this.flags = src.flags;
            this.mins = src.mins;
            this.maxs = src.maxs;
            this.radius = src.radius;
            this.clipbox = src.clipbox;
            this.clipmins = src.clipmins;
            this.clipmaxs = src.clipmaxs;
            this.firstmodelsurface = src.firstmodelsurface;
            this.nummodelsurfaces = src.nummodelsurfaces;

            this.numsubmodels = src.numsubmodels;
            this.submodels = src.submodels;

            this.numplanes = src.numplanes;
            this.planes = src.planes;

            this.numleafs = src.numleafs;
            this.leafs = src.leafs;

            this.numvertexes = src.numvertexes;
            this.vertexes = src.vertexes;

            this.numedges = src.numedges;
            this.edges = src.edges;

            this.numnodes = src.numnodes;
            this.nodes = src.nodes;

            this.numtexinfo = src.numtexinfo;
            this.texinfo = src.texinfo;

            this.numsurfaces = src.numsurfaces;
            this.surfaces = src.surfaces;

            this.numsurfedges = src.numsurfedges;
            this.surfedges = src.surfedges;

            this.numclipnodes = src.numclipnodes;
            this.clipnodes = src.clipnodes;

            this.nummarksurfaces = src.nummarksurfaces;
            this.marksurfaces = src.marksurfaces;

            for (int i = 0; i < src.hulls.Length; i++)
            {
                this.hulls[i].CopyFrom(src.hulls[i]);
            }

            this.numtextures = src.numtextures;
            this.textures = src.textures;

            this.visdata = src.visdata;
            this.lightdata = src.lightdata;
            this.entities = src.entities;

            this.cache = src.cache;
        }
示例#6
0
        public void Clear()
        {
            this.name = null;
            this.needload = false;
            this.type = 0;
            this.numframes = 0;
            this.synctype = 0;
            this.flags = 0;
            this.mins = Vector3.Zero;
            this.maxs = Vector3.Zero;
            this.radius = 0;
            this.clipbox = false;
            this.clipmins = Vector3.Zero;
            this.clipmaxs = Vector3.Zero;
            this.firstmodelsurface = 0;
            this.nummodelsurfaces = 0;

            this.numsubmodels = 0;
            this.submodels = null;

            this.numplanes = 0;
            this.planes = null;

            this.numleafs = 0;
            this.leafs = null;

            this.numvertexes = 0;
            this.vertexes = null;

            this.numedges = 0;
            this.edges = null;

            this.numnodes = 0;
            this.nodes = null;

            this.numtexinfo = 0;
            this.texinfo = null;

            this.numsurfaces = 0;
            this.surfaces = null;

            this.numsurfedges = 0;
            this.surfedges = null;

            this.numclipnodes = 0;
            this.clipnodes = null;

            this.nummarksurfaces = 0;
            this.marksurfaces = null;

            foreach (hull_t h in this.hulls)
                h.Clear();

            this.numtextures = 0;
            this.textures = null;

            this.visdata = null;
            this.lightdata = null;
            this.entities = null;

            this.cache = null;
        }