public StaticGeometryHelper(WorldManager worldMgr, StaticGeometryKind kind, int rebuildTimeThreshold, int nodesAddedThreshold, int nodesRemovedThreshold, int nodesAddedInLastSecondThreshold) { this.worldMgr = worldMgr; this.kind = kind; this.name = (kind == StaticGeometryKind.BigOrLittleNode ? "StaticGeom" : (kind == StaticGeometryKind.BigNode ? "BigNodes" : "LittleNodes")); this.objectGeometry = null; this.rebuildTimeThreshold = rebuildTimeThreshold; this.nodesAddedThreshold = nodesAddedThreshold; this.nodesRemovedThreshold = nodesRemovedThreshold; this.nodesAddedInLastSecondThreshold = nodesAddedInLastSecondThreshold; this.nodesAddedSinceLastRebuild = 0; this.nodesRemovedSinceLastRebuild = 0; this.lastNodesAdded = 0; this.timeOfLastRebuild = 0; this.lastRebuildCheckTime = 0; this.enabled = false; this.force = false; }
public StaticGeometryHelper(WorldManager worldMgr, StaticGeometryKind kind, int rebuildTimeThreshold, int nodesAddedThreshold, int nodesRemovedThreshold, int nodesAddedInLastSecondThreshold) { this.worldMgr = worldMgr; this.kind = kind; this.name = (kind == StaticGeometryKind.BigOrLittleNode ? "StaticGeom" : (kind == StaticGeometryKind.BigNode ? "BigNodes" : "LittleNodes")); this.objectGeometry = null; this.rebuildTimeThreshold = rebuildTimeThreshold; this.nodesAddedThreshold = nodesAddedThreshold; this.nodesRemovedThreshold = nodesRemovedThreshold; this.nodesAddedInLastSecondThreshold = nodesAddedInLastSecondThreshold; this.nodesAddedSinceLastRebuild = 0; this.nodesRemovedSinceLastRebuild = 0; this.lastNodesAdded = 0; this.timeOfLastRebuild = 0; this.lastRebuildCheckTime = 0; this.enabled = false; this.force = false; }